HELP: ASPX Page "loses" login state after leaving & coming back

B

Bobby Edward

I put this setting in the web.config to try and "persist" my login state &
all session variables related to the login...
<system.web> <authentication mode="Forms"> <forms
timeout="50000000"/> </authentication></system.web>My web application
basically works like this....
1. User logins to the website (using Forms authentication)
2. Goes to payment page (must be logged in to see page)
3. After filling out a few things the page is REDIRECTED to the
Authorize.net servers
4. User fills out credit card info etc and submits it on the Authorize.net
server
5. After displaying a receipt they click Continue and they are REDIRECTED
BACK to my website. The page they get redirected to is in a 'members only'
directory. (Since we SHOULD be logged in there should be no problem!!!!)
6. The members-only page stores some info in the database (product marked
as paid, etc...)

The problem is with step 5. When I get redirected back to my website
SOMETIMES it works and sometimes it jumps me over to the login.aspx page
(with a redirecturl) as if I was NOT logged in! Why does it think I am NOT
logged in when I should be?!!!
 
R

RayLopez99

Any ideas on this folks?

Try posting on the official Microsoft ASP.NET site, as sometimes you
get quicker responses there. To me it sounds like it's not a
programming problem but your latency on the website is such that your
browser defaults to another choice after xyz seconds.

RL
 
B

Bobby Edward

I will post it on the other site.

Basically, I want the login/authenication and all session vars to be
remembered after I leave the site and come back. How can I do this?

Any ideas on this folks?

Try posting on the official Microsoft ASP.NET site, as sometimes you
get quicker responses there. To me it sounds like it's not a
programming problem but your latency on the website is such that your
browser defaults to another choice after xyz seconds.

RL
 
R

RayLopez99

I will post it on the other site.

Basically, I want the login/authenication and all session vars to be
remembered after I leave the site and come back.  How can I do this?

beats me. I just started learning this language. It's not strongly
typed like C#, and the "code-behind" versus XHTML is a pain, but it's
not hard to learn, just a few tricks. Feel free to post the solution
you found here, so I can follow it for future reference. Good luck.

RL
 
R

RayLopez99

I will post it on the other site.

Basically, I want the login/authenication and all session vars to be
remembered after I leave the site and come back.  How can I do this?

Just thought of something: set EnableViewState to true.

RL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top