|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
How do i check if user is logged on or not?
i would like to echo different links on each page depending on if the user is logged on or not,
e.g "log on" or "register" if they are not and "change style" if they are, how do i do this? thanks..
__________________
im lve web designing |
|
#2
|
|||
|
|||
|
I think you might want to use the $_SESSION superglobal to do this maybe...
|
|
#3
|
|||
|
|||
|
hello
can you give me sample for this script please.. |
|
#4
|
|||
|
|||
|
how is your log in set up? when i say that is how do you tell when the user is logged in our not, that is if you have it set up in the 1st place. If not you would parse the user input and check it against the records in the db if everything is set then you would assign the username to a $_SESSION var.
PHP Code:
now if you are testing whether they are logged in or not you would simply go PHP Code:
__________________
I drunk red bull and grew wiings!!! |
|
#5
|
|||
|
|||
|
ok thank you, it really help me a lot
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Applications > How do i check if user is logged on or not? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|