The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Secure cookie is deleted when visiting $app->get('/')

Claudio's Avatar

Claudio

20 Feb, 2012 09:15 AM

Something really weird is happening to my app. I have created a simple login system a public ssid using secure cookies. As long as i dont go to / after the cookie is created everything is ok, but when i visit /, i see that the cookie is ok but i get a "refresh" to the same page and voila the cookie is deleted

My slim configuration is

$app = new Slim(array(

    'cookies.secret_key'  =>....
    'cookies.lifetime' => time() + (1 * 24 * 60 * 60* 30), //yes 30 days but just for testing
    'cookies.cipher' => MCRYPT_RIJNDAEL_256,
    'cookies.cipher_mode' => MCRYPT_MODE_CBC

) ); And in my header i don't have any redirection.
Please help.
Thanks
Claudio

  1. Andrew Smith closed this discussion on 01 Aug, 2012 12:44 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac