I have some problem with session code. On one page I registered the session with the following code: session_register("username"); PHP: After that without destroying it, when I check the session with the code: if(session_is_registered('username')) PHP: It gives FALSE What is the error on here? Please help. If there any better technique available for establishing session?
Did you start the session before you registered any variables. Some servers wont properly initialize a new session. Try session_start(); session_register("username");
Yes.... The code is on there. But the problem still existing. Is it necessary to add: session_start(); before: if(session_is_registered('username'))
Sorryy......... I solved the problem. I missed the session_start() on the second page. Now solved the problem. Thanks for helping me. Thanks....