Re: Session variables in IE

From: James McIninch (james.mcininch.nospam_at_comcast.net)
Date: 06/26/04


Date: Sat, 26 Jun 2004 18:00:41 GMT

Matt wrote:

> Why on earth would the security settings affect session variables?
> We're not setting a cookie here. I'm just trying to carry one session
> variable over from one page to the next. If the security settings in IE
> are set to "high", it doesn't work. What gives?

A session requires a cookie to store the session id. This not a PHP specific
thing. However, PHP does have a configuration option that forces the
session id to be appended to the URL rather than use a cookie (as a work
around to things not allowing cookies).

-- 
remove .nospam from e-mail address to reply


Relevant Pages

  • Re: Sessions
    ... click the link and in aoltest3.php the session variable is visable. ... Registered serializer handlers php php_binary wddx ... session.name PHPSESSID PHPSESSID ... see the PHPSESSID, in a cookie, or in the URL. ...
    (comp.lang.php)
  • Strange difference when cookie disappears from $_REQUEST in HTTP vs. WAP
    ... with how PHP interacts with MySQL, ... Header has been generated to destroy your login session cookie, ... the cookie so it doesn't show up in $_REQUEST. ...
    (comp.lang.php)
  • Re: php session GC error
    ... After this number of seconds, stored data will be seen as 'garbage' ... how do I explicitly tell PHP in the ini what directory to use for session ... Lifetime in seconds of cookie or, if 0, until browser is restarted. ...
    (php.general)
  • Re: Cookie not conserved across jump
    ... instruction in PHP. ... just leads to another HTTP request. ... $_SESSION is stocked up with the bits // the v2 page will need ... Why would session_startgenerate a new cookie at all? ...
    (comp.lang.php)
  • Re: Sessions vs Cookies
    ... There is a session cookie which simply allows the server to identify the client and retrieve relevant session data for it. ... If cookies can be read or forged, it makes little odds whether you have the master key or all the little keys,. ... Suppose you only send the PHPSESSID: Now you cannot change a thing on the server, even if you have the 'master key'. ...
    (comp.lang.php)