Jump to content


Photo

Session ID


  • Please log in to reply
1 reply to this topic

#1 dragonusthei

dragonusthei
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 31 May 2006 - 01:08 PM

I made a login system that uses session ids to determin whos logged in etc but when cookies are off it just fails every single time. How do i make it so when cookies are turned off the session id is visible in there URL field and session ids are passed that way?

#2 wisewood

wisewood
  • Members
  • PipPipPip
  • Advanced Member
  • 226 posts
  • LocationRotherham, England

Posted 31 May 2006 - 01:24 PM

<?php
session_start();
$_SESSION[sessionid] = session_id();
$_SESSION[username] = "dragonusthei";

echo "$_SESSION[sessionid] :: $_SESSION[username]";
?>
wisewood: proven fact, I am both wise, and wooden.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users