By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,968 Members | 1,684 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,968 IT Pros & Developers. It's quick & easy.

Login Redirect

P: n/a
Hi, all

I have this login script that calls on itself to authenticate the username
and the password. It redisplays the login page if there is an error. My
question is how do I redirect it to a different page, when the user is
authenticated (i.e. the address in the address box changes to a new name,
for example, if the login page is called login.php, then I want to redirect
the logged in user to home.php without any clicking from the user). I
realize that there is a header function available, but I've heard that any
information related to the current session is lost upon using this function.
Is there any better way?
cheers

==James==
Jul 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Sun, 17 Aug 2003 04:43:40 +1200 in
<message-id:2b*********************@news02.tsnz.net>
"James Jiao" <ja*******@paradise.net.nz> wrote:
I want to redirect
the logged in user to home.php without any clicking from the user). I
realize that there is a header function available, but I've heard
that any information related to the current session is lost upon
using this function. Is there any better way?

Hmm, don't know where you heard that, but I've just implemented this
exact same idea.

What results did you get when you tried it?

Regards,

Ian

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.
Jul 16 '05 #2

P: n/a
Same here. Just implemented the same thing using the same process. Where di
you read that as it may explain a problem I am having (in the post above
this one).
"Ian.H [dS]" <ia*@WINDOZEdigiserv.net> wrote in message
news:20030816180933.2da509e1.ia*@WINDOZEdigiserv.n et...
On Sun, 17 Aug 2003 04:43:40 +1200 in
<message-id:2b*********************@news02.tsnz.net>
"James Jiao" <ja*******@paradise.net.nz> wrote:
I want to redirect
the logged in user to home.php without any clicking from the user). I
realize that there is a header function available, but I've heard
that any information related to the current session is lost upon
using this function. Is there any better way?

Hmm, don't know where you heard that, but I've just implemented this
exact same idea.

What results did you get when you tried it?

Regards,

Ian

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.

Jul 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.