Re: session id's and included scripts
- From: Lorenzo Bettini <bettini@xxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 14:03:54 +0100
Mike wrote:
I have a login script that uses sessions. I want to pass the session
id in the URL so I have turned on the session.use_trans_sid.
After the user enters their login info they hit a submit button in a
form. This directs to a script with no output as it purley checks the
login data is true. The session id is still in the url at this point.
If the login data is ok it then uses location to redirect to another
page. When it arrives at this new page the url no longer contains the
session id. I've even tried hard coding it into the script
?PHPSESSID=$PHPSESSID with no luck.
I do include a couple of scripts at the top of my scrips. Do I need to
add the PHPSESSID to the included scripts too?
are you sure that in the redirected page you call session_start()?
--
+-----------------------------------------------------+
| Lorenzo Bettini ICQ# lbetto, 16080134 |
| Home Page : http://www.lorenzobettini.it |
| http://tronprog.blogspot.com BLOG |
| http://www.purplesucker.com Deep Purple Cover Band |
| http://www.gnu.org/software/src-highlite |
| http://www.gnu.org/software/gengetopt |
| http://www.lorenzobettini.it/software/gengen |
| http://www.lorenzobettini.it/software/doublecpp |
+-----------------------------------------------------+
.
- Follow-Ups:
- Re: session id's and included scripts
- From: Mike
- Re: session id's and included scripts
- References:
- session id's and included scripts
- From: Mike
- session id's and included scripts
- Prev by Date: Re: $_POST???
- Next by Date: Re: session id's and included scripts
- Previous by thread: session id's and included scripts
- Next by thread: Re: session id's and included scripts
- Index(es):