code_junkie

Session not saving when moving from ssl to non-ssl

Nov 12th, 2011
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. if (env('HTTPS')) {
  2. ini_set('session.name', Configure::read('Session.cookie').'-SECURE');
  3. }else{
  4. ini_set('session.name', Configure::read('Session.cookie'));
  5. }
Add Comment
Please, Sign In to add comment