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

Redirecting users

P: n/a
I am a novice programmer. I want to give my site the ability to remember
users. I want to do this the easiest possible way--using cookies to store
username and password--since I am not concerned with security at this point.
In the sign on page, I first check for the value of the cookie. If invalid
or null, users are requested to log in. I only want to check the value of the
cookie in one page.
My problem is that if users enter my site via a page other than the default
(login) page, the site checks the status (logged in/not logged in) and
performs accordingly. If users arer not logged in, they will be redirected to
the login page where the cookie is going to be rerquested. How do I redirect
users back to the pae they originally requested?

Hector
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hecsan:
The easiest way is probably to use the built-in forms authentication
(http://www.15seconds.com/issue/020220.htm) which will take care of this for
you and also remove the automatic login that you'll want down the road.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"hecsan07" <he******@hotmail.com> wrote in message
news:78**********************************@microsof t.com...
I am a novice programmer. I want to give my site the ability to remember
users. I want to do this the easiest possible way--using cookies to store
username and password--since I am not concerned with security at this point. In the sign on page, I first check for the value of the cookie. If invalid
or null, users are requested to log in. I only want to check the value of the cookie in one page.
My problem is that if users enter my site via a page other than the default (login) page, the site checks the status (logged in/not logged in) and
performs accordingly. If users arer not logged in, they will be redirected to the login page where the cookie is going to be rerquested. How do I redirect users back to the pae they originally requested?

Hector

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.