What is a good way to set a cookie to be used by a session?
The session in question spans about 10 pages. I read the manual pages about sessions but it doesn't say how to associate a cookie with a session.
The script itself should log in a user, and put their username in the session superglobal array for later database use.
Also, I have a part in the login script that checks if the user is already logged in. Login is succesful, but I can't make logout work! I put session_destroy() in the logout script, but it doesn't seem to work. . .
(please note, my early attempts to use session functions were a disaster)
thanks