• 0

Cookies, Sessions


Question

i used the tutorial here how could i make the login so when they login it sets the cookie with thier usename and password... and how could i make a page that checkes for the cookie and if its there login useing the name and pass??

-thanks in advanced

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

an "all in one" page design i created, each page verifies the user.

if cookie, verify it, and if it's right, start a session if it's wrong, show login page and die()

elseif session, verify it (optional), if it's right continue loading the page, else show login page and die()

elseif the user just posted their uname/pass verify it and if they wanted to set a cookie else just start a session.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.