|
Posted by dschreck on 03/09/07 21:19
On Mar 9, 8:55 am, "Beshoo" <basheerm...@gmail.com> wrote:
> hey gaiz plz I want to cerate log in system in ajax i do it but i have
> one problem
>
> AFTER I start thes session then press refresh key the session gone !!!
> in other words , after the user type hid username and password I send
> this information by XMLrequest to php file which verify the user name
> and the password if trure open the sesstion and get it name 'user' its
> become like this
>
> $_SESSION['user']=$user;
>
> actually after i open the sesstion_start();
>
> BUT THE PROBLEM IS WHN I PRESS F5 "refresh the page the sesssion is
> gone
>
> ANY WAY OUT PLZ :)
>
> alot of htanx in advance
Make sure session_start() is at the top of every file.
Try setting the php ini setting to use cookies for sessions, and make
the session lifetime greater.
should work.
Navigation:
[Reply to this message]
|