|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
LOGIN
I was wondernig, you know like on any site when you login with your username and password, than every page you visit knows your still logged in. How does that work? Right now i have a stupid way of doing it, a variable that says login = 1 and i just keep passing it to every page the user clicks to. Im sure there is some better way to do it, could someone please help me out. Thanks alot.
Also its easy for someone to just see any page they want by adding a variable login = 1 in the url so this is not very good security ;( |
|
#2
|
|||
|
|||
|
RE: LOGIN
one word, "sessions"
|
|
#3
|
|||
|
|||
|
RE: LOGIN
what our sessions?
|
|
#5
|
|||
|
|||
|
RE: LOGIN
cookies are good too
|
|
#6
|
|||
|
|||
|
RE: LOGIN
but i heard that the user is able to disable cookies or somethin?
|
|
#7
|
|||
|
|||
|
RE: LOGIN
yeah, thats right, so do sessions unless you attach the session id to every url
|
|
#8
|
|||
|
|||
|
RE: LOGIN
Yupe Sessions. Pass the variable Login=1 by registering it to the session. If someone hasn't gone through the login process, login isn't set to 1 and so they'll not be able to access the page.
Good luck |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > LOGIN |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|