View Revisions: Issue #483
[ All Revisions ] [ Back to Issue ]
Summary | 0000483: Session cookies not created for local website | ||
---|---|---|---|
Revision | 2013-12-18 18:03 by Vincent Sanders | ||
Description | alan@adamshome.org.uk. I am developing a website with a login script. That script uses session_register("myusername"); $_SESSION['login_user']=$myusername; A check later does $login_session=$row['login_user']; if (!isset($login_session)) { <report no login> } This works in IE, Firefox, Safari and Chrome. In Netsurf (2.8 and latest dev build) it works IF I use http://192.168.0.1/nckc/login.php but fails for http://laptop2/nckc/login.php There is a cookie created in 192.168.0.1 called PHPSESSID. There is nothing created when connecting to the laptop by name. (I deleted all the cookies first, so I could be sure.) I noticed a bug reporting this in 2007, closed without any comment I could find, except "expired". I am new to writing PHP, so the problem could be in my code, which was cribbed in the usual fashion from google. Alan Adams |
||
Revision | 2012-01-17 20:10 by Sourceforge Import placeholder | ||
Description | alan@adamshome.org.uk. I am developing a website with a login script. That script uses session_register("myusername"); $_SESSION['login_user']=$myusername; A check later does $login_session=$row['login_user']; if (!isset($login_session)) { <report no login> } This works in IE, Firefox, Safari and Chrome. In Netsurf (2.8 and latest dev build) it works IF I use http://192.168.0.1/nckc/login.php but fails for http://laptop2/nckc/login.php There is a cookie created in 192.168.0.1 called PHPSESSID. There is nothing created when connecting to the laptop by name. (I deleted all the cookies first, so I could be sure.) I noticed a bug reporting this in 2007, closed without any comment I could find, except "expired". I am new to writing PHP, so the problem could be in my code, which was cribbed in the usual fashion from google. Alan Adams |