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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.