[Gambas-user] Session object does not work anymore (gb.web, rev #5096)

Benoît Minisini gambas at ...1...
Tue Sep 25 01:38:42 CEST 2012


Le 24/09/2012 19:08, Adrien Prokopowicz a écrit :
> Hi Benoît,
>
> I recently updated my server to the last revision of gambas, and I
> noticed that the Session system didn't work anymore.
>
> After some investigations, I saw that the session cookie path wasn't
> the same anymore :
>
> Set-Cookie:SESSION=88.140.174.145:0123456789ABB0C0DB1EEF5;path=/main.gambas.cgi;httponly
> (Now)
> Set-Cookie:SESSION=88.140.174.145:0123456789ABB0C0DB1EEF5;path=/;httponly
> (Before)
>
> The problem is that the CGI script is main.gambas.cgi, but because of
> URL rewriting, the user never sees it (he sees index.html or
> forum.html for example).
>
> I now the change is intended (rev #5096), but is it possible to
> manually set the session path (maybe a Session.Path property) ?
>
> Regards,
> Adrien.
>

I have added a Session.CookiePath in rev #5197 for you. Tell me if it 
works, as that cookie path has to be stored in the session file so that 
it is restored correctly.

I will keep Session.Path for the path of the session file.

Regards,

-- 
Benoît Minisini




More information about the User mailing list