Re: Losing Session Variables

From: Aaron Bertrand [MVP] (aaron_at_TRASHaspfaq.com)
Date: 04/09/04


Date: Fri, 9 Apr 2004 01:48:20 -0400

http://www.aspfaq.com/2157

-- 
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Jimbo" <anonymous@discussions.microsoft.com> wrote in message 
news:1a92801c41df2$38bbf630$a101280a@phx.gbl...
> Hi All,
>
> I'm rather new to ASP but I'm running into a problem that
> has me stumped.  I am developing some websites on my home
> computer (WinXP Pro, IIS 5.1).
>
> Basically, I have an ASP login page that once a user is
> authenticated a session variable is set to show they have
> logged in successfully.
>
> For example:
> Session("loggedin")= "True"
>
> They are then redirected to the "member" page, which
> checks the session variable and displays the member page
> if it is true, or jumps them back to the Login page if
> False.
>
> For example:
> If Session("loggedin") <> "True" Then
>   Response.Redirect ("login.asp")
>   Response.End
> End If
>
> The problem I'm running in to is that the session
> variable does not seem to be saving any data so even
> registered users (i.e., me at the moment) get bounced
> back to the login page.  (I've tried switching to
> cookies, but have the same problem - not surprising I
> guess, since sessions use cookies).
>
> This was all working a few months back, but has now
> stopped. I was working on a few different projects for
> the past couple of months and have just returned to these
> older projects. Any ideas as to what might be the cause
> of this behavior and how it might be corrected?  Could a
> Windows or IE update be responsible?
>
> Thanks for any help.
>
> Cheers,
> Jimbo
>
> 


Relevant Pages

  • Losing Session Variables
    ... I have an ASP login page that once a user is ... checks the session variable and displays the member page ... guess, since sessions use cookies). ...
    (microsoft.public.inetserver.asp.general)
  • Re: Help - Secure page by remembering user?
    ... But could you not redirect them to the login page if cookies were disabled ... and default to basic login in via asp checking user name against the ...
    (microsoft.public.inetserver.asp.general)
  • Check Yes/No cookies enabled?
    ... It is possible to check via ASP whether cookies are enabled for a person's ... web browser and based on this check send him to another page which does not ... support cookies (ie login?)? ...
    (microsoft.public.inetserver.asp.general)
  • Re: ASP "Membership" or Login Scripts - Anybody with experience in implmenting?
    ... Does anyone here have any experience with ASP scripting concerning "membership", or selective login in products and/or implementing these features in an FP site? ... NetLogin User Management, http://www.aspworld.com/products/netlogin.asp?aid=1 ...
    (microsoft.public.frontpage.client)
  • Re: advice - spoofing an active directory login?
    ... Is there a way to set values within ASP to make them appear as though ... Basically I'm going to have info from the user's previous login passed ... in and I need to be able to authenticate them against AD without them ... >> Any advice for how this can be accomplished? ...
    (microsoft.public.win2000.active_directory)