PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old August 27th, 2002, 08:33 PM
silentScope silentScope is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 16 silentScope User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to silentScope
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 ;(


Reply With Quote
  #2  
Old August 27th, 2002, 08:36 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: LOGIN

one word, "sessions"

Reply With Quote
  #3  
Old August 27th, 2002, 09:23 PM
silentScope silentScope is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 16 silentScope User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to silentScope
RE: LOGIN

what our sessions?

Reply With Quote
  #4  
Old August 27th, 2002, 09:36 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: LOGIN

you can read up on sessions here

basically, they're intended for exactly what you're talking about. sessions are a method of tracking/remembering a visitor from page to page

Reply With Quote
  #5  
Old August 28th, 2002, 09:02 AM
D1NGO D1NGO is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 221 D1NGO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: LOGIN

cookies are good too they are better if you dont want your user to have to login each time they visit the site...

Reply With Quote
  #6  
Old August 28th, 2002, 05:21 PM
silentScope silentScope is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 16 silentScope User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to silentScope
RE: LOGIN

but i heard that the user is able to disable cookies or somethin?

Reply With Quote
  #7  
Old August 29th, 2002, 03:38 AM
siteworkspro.com siteworkspro.com is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 92 siteworkspro.com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to siteworkspro.com Send a message via AIM to siteworkspro.com
RE: LOGIN

yeah, thats right, so do sessions unless you attach the session id to every url

Reply With Quote
  #8  
Old August 29th, 2002, 06:53 AM
Emperor_Jazzy Emperor_Jazzy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Melbourne, Vic, Aus
Posts: 7 Emperor_Jazzy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > LOGIN


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway