Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Login question

Reply
Thread Tools

Login question

 
 
Peter Rooney
Guest
Posts: n/a
 
      11-04-2003




Hi,

Simple question, I have a login page that asks for a usrname and
password if this data exists in the database it creates a session
variable for each then redirects to another page, this page checks the
user sesion for a value and if it is not empty it displays the page or
redirects you back to the login page if the session is empty.

When I log in it displays the redirected page correctly but if I follow
a subsequent link to another page (all pages run the same check)it
redirects me back to the login page even though the two sessions are
valid (I did a response.write to confirm the values) however if I log in
again it lets me view all the pages correctly, what would be the reason
that the first login seems to lose the session values but by logging in
again allows me to continue?

many thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Lasse Edsvik
Guest
Posts: n/a
 
      11-04-2003
use response.write on all pages for the sessionvariables to see where it
goes empty...... and check that document for spellingerrors etc on variables
and such

/Lasse

"Peter Rooney" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
>
>
>
> Hi,
>
> Simple question, I have a login page that asks for a usrname and
> password if this data exists in the database it creates a session
> variable for each then redirects to another page, this page checks the
> user sesion for a value and if it is not empty it displays the page or
> redirects you back to the login page if the session is empty.
>
> When I log in it displays the redirected page correctly but if I follow
> a subsequent link to another page (all pages run the same check)it
> redirects me back to the login page even though the two sessions are
> valid (I did a response.write to confirm the values) however if I log in
> again it lets me view all the pages correctly, what would be the reason
> that the first login seems to lose the session values but by logging in
> again allows me to continue?
>
> many thanks
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
News login different from mail login William W. Plummer Firefox 21 04-08-2005 05:37 AM
Login Failed: Error 18456: Unable to login to run SP on local serv =?Utf-8?B?Z2FyaWJhbGRp?= ASP .Net 2 02-25-2005 09:17 PM
Cannot open database requested in login 'xyz'. Login fails. Nans ASP .Net 2 06-17-2004 07:06 AM
Forms Login Page Not Login Out Hermit Dave ASP .Net 5 01-13-2004 07:14 AM
Re: PLEASE? Any way to get the user's nt login from the pc -- not the server login? William F. Robertson, Jr. ASP .Net 0 07-02-2003 03:57 PM



Advertisments