Re: Looks like redirect creates a new session

Johan Brichau <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
Brad,

Can you share the code how you redirect to the homepage?

The session id is stored in the url, and if you loose that when redirecting, a new session will be created.
This would happen when you are literally coding a redirect instead of using a WATask or a #call:/#answer flow.

Johan

> On 18 Nov 2015, at 16:46, [email protected] wrote:
> 
> I'm new to Seaside. I'm trying to create a "home" page that will contain menu
> bar etc.  But, I'm checking to see if the user has logged in first. If not,
> then I'm redirecting to a login page. I can walk through the login process,
> but when redirecting back to the "home" page the session does NOT have any
> login information in it. It looks to me like a redirect is creating a new
> session object rather than a shared session object. Does anyone know if this
> is true? Any ideas how I should tackle this? 
> 
> I am using Seaside3(topa.278) configuration and Pharo 4.0. 
> 
> Thanks, 
> 
> Brad Selfridge
> 
> 
> 
> -----
> Brad Selfridge
> --
> View this message in context: http://forum.world.st/Looks-like-redirect-creates-a-new-session-tp4861716.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.