Re: Session lost when changing from SSL to non-SSL connection

2009-04-16 Thread OceanInternet

I've opened an RFC on this: -

http://groups.google.com/group/tickets-cakephp/browse_thread/thread/97c06384d8cdfa4d

is there somebody that could take a look at it?

also, is this something that should be moved to 1.3?

Many thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Session lost when changing from SSL to non-SSL connection

2009-04-07 Thread OceanInternet

to prevent "Surf Jacking", the following code was added to
Session::__initSession(): -

if ($ini_set && env('HTTPS')) {
ini_set('session.cookie_secure', 1);
}

https://trac.cakephp.org/ticket/5254

The implications of this (as far as I can tell) are that once an SSL
connection has been made (and the session cookie turned secure), in
order to maintain the session, all further connections must be SSL
(even in areas of the application that do not require an SSL
connection).

The solutions I have found are: -

1. Remove this security feature (http://stackoverflow.com/questions/
308659/session-not-saving-when-moving-from-ssl-to-non-ssl).
2. Force SSL connection always (via .htaccess)

The solution I would like to use is: -

3. Force SSL connection when a secure session cookie is detected

Any pointers would be greatly appreciated

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---