Re: session handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i am having one problem in session handling.
I am having 2 files,login page and hame page.
when user enterd user name and password in login page
.i used session to store the user id .in my second
home page.i retrieve the user id.now i want the user
id to be availble in my thrid page.plz help me.this is
my code.

login.php
session_start();
$ID=$userid;
session_register("ID");

homepage.php
session_start():
echo $ID   //this is working fine



thirdpage.php
  session_start();
  echo $ID //not working


i am looking reply from u



Try:  session_register("ID");

tedd
--
--------------------------------------------------------------------------------
http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux