mark-unna Posted July 23, 2007 Share Posted July 23, 2007 Hi all Quick question: does anyone have any stats on the percentage of browsers/environments that support session cookies? Reason I ask is that I might have come up with a spellbinding anti-form-spam solution. TIA. Quote Link to comment Share on other sites More sharing options...
trq Posted July 23, 2007 Share Posted July 23, 2007 Session cookies are just normal cookies according to a browser. I would say all browsers have support for cookies. Quote Link to comment Share on other sites More sharing options...
mark-unna Posted July 23, 2007 Author Share Posted July 23, 2007 Certain security solutions (McAffee et al) and specific browser settings allow the user to stop $_COOKIEs to be set - I'm wondering if this is the case for $_SESSION as well. Firefox does not store $_SESSION in the same way that it stores $_COOKIE. I guess that what I'd like to know is whether people have experienced any problems setting just $_SESSION? Quote Link to comment Share on other sites More sharing options...
ViN86 Posted July 23, 2007 Share Posted July 23, 2007 arent session variables stored on the server? read the "PHP Sessions - Overview" part http://www.tizag.com/phpT/phpsessions.php furthermore, pretty much all browsers will support cookies as long as the user didnt disable/block them. Quote Link to comment Share on other sites More sharing options...
trq Posted July 23, 2007 Share Posted July 23, 2007 Session data is stored on the server but a cookie is also set on the client for recognition. I guess that what I'd like to know is whether people have experienced any problems setting just $_SESSION? If cookies are disabled, php will attempt to persist a session by passing the session id around in the url. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 23, 2007 Share Posted July 23, 2007 Session data is stored on the server but a cookie is also set on the client for recognition. I guess that what I'd like to know is whether people have experienced any problems setting just $_SESSION? If cookies are disabled, php will attempt to persist a session by passing the session id around in the url. Will php always do this? I thought i had tried turning cookies off before and my sessions no longer functioned. Just wondering if php has to be set up in a particular way for this behaviour? Quote Link to comment Share on other sites More sharing options...
trq Posted July 23, 2007 Share Posted July 23, 2007 I think (but not 100%) its setup by default, but yes, it is a php.ini setting. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 23, 2007 Share Posted July 23, 2007 Ok thanks, ill take a look when i get home. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.