v8hadas Posted November 27, 2007 Author Share Posted November 27, 2007 And the really strange thing is that if I look into the session file, it contains: test|s:3:"foo"; Quote Link to comment Share on other sites More sharing options...
trq Posted November 27, 2007 Share Posted November 27, 2007 You do have cookies enabled in your browser? Quote Link to comment Share on other sites More sharing options...
v8hadas Posted November 27, 2007 Author Share Posted November 27, 2007 Hmmm, I allow cookies very seldom and only for sites I really do trust. But, in fact, I do not even have cookies setup in the php.ini as I edited and have now: session.use_cookies = 0 I do not want to use cookies because most users I know simply disable all cookies as default. I guess p1.php?PHPSESSID=%1 will have to be used, is that correct for <a>? What should be used with include/require php functions? The require("x.php?anything"); does not work out since then the entire string is interpreted as filename, including the question mark and the filename. Is there a way to pass the session id to requires/includes? Quote Link to comment Share on other sites More sharing options...
trq Posted November 27, 2007 Share Posted November 27, 2007 PHP will automatically append the session id to the url. Disabling cookies for security is a falicy, and I think you'll find most internet users these days have them enabled, they really do no harm. Quote Link to comment Share on other sites More sharing options...
v8hadas Posted November 27, 2007 Author Share Posted November 27, 2007 It works now, thanks for the guidance. I will post one more question, that is all I have now. 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.