![]() |
Session issue?
Hey everyone,
I seem to be having a session issue and hoping someone could assist me. I have just finished creating a login form etc an everything seems to be working fine, the only issue i'm having is after the user has logged in, it won't display the username name ie: 'Welcome user'... As per code below, it will only display 'Welcome Guest' so it seems to me that $_SESSION is not working correctly.... This is the code for the verifying details etc Code:
<?phpCode:
<?phpThanks |
Have a session_start() at the top of the login page too - and in general every page where you'll ever need to get, manipulate or destroy session variables - and asign $username to $)SESSION['myusername'].
PHP Code:
|
Works great, thank you so much.
|
If we want to add the specific validation like the people only from particular areas, then which code will we use?
|
People from specific areas? You mean like Geo-targeting?
|
| All times are GMT +1. The time now is 08:56 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.