Don't like ads? PRO users don't see any ads ;-)
Guest

Set up session.use_cookies

By: a guest on Apr 15th, 2012  |  syntax: None  |  size: 0.75 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Set up session.use_cookies
  2. I am writing PHP code where I want to pass the session id myself using POST.
  3. I don't want a cookie to store the session, as it should get lost when the user gets out of the POST cycle.
  4.  
  5. PHP automatically sets the cookie where available.
  6. I learned it is possible to change this behaviour by setting
  7. session.use_cookies to 0 in php.ini.
  8. More on Set up session.use_cookies
  9.  
  10. ---------------------------------------------------
  11.                      http://adf.ly/6agfq
  12. ---------------------------------------------------
  13. Set up session.use_cookies
  14.  
  15.  
  16.  
  17.  
  18.  
  19. Tags: session.use_cookies, session.use_cookies='0';  ,  isset($_COOKIE, session_id($sessionid);
  20. session_start();   , 'sessionid'  , $_POST
  21. Set up session.use_cookies