Jump to content

Sessions without cookies? HELP!


sodascape

Recommended Posts

Not sure what you're trying to accomplish...php by default uses a cookie to store the session id of a user.  However if a user has cookies disabled it will pass the session id in the url.

 

You may be able to change this default behavior in php.ini, or some other place, but I don't know where off hand.

After looking in the manual...of all places !!!...I found this:

 

session.use_cookies  boolean

    session.use_cookies specifies whether the module will use cookies to store the session id on the client side. Defaults to 1 (enabled).

session.use_only_cookies boolean

    session.use_only_cookies specifies whether the module will only use cookies to store the session id on the client side. Enabling this setting prevents attacks involved passing session ids in URLs. This setting was added in PHP 4.3.0.

 

Which is set in php.ini

 

http://us2.php.net/manual/en/ref.session.php#ini.session.save-handler

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.