Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
I have developed an asp.net website and I hosted it on windows server 2008-R2 Enterprise which is having IIS version 7.5.
When the user logged in successfully I am redirecting the user to Page1.aspx .In page1 I am collecting some inputs from the user and on form submit I am redirecting them to Page2.aspx.
"But it is not getting redirected to page2.aspx ,instead it's again going to login page".

It is working fine in the following scenarios:
1.I hosted my application in another machine which is having windows server 2008 with the same IIS version(7.5).
2.In WINDOWS7 ultimate also it's working fine(same IIS version).
3.It is working fine in development with out any exception

Can anybody help me to solve this issue.

thanks and regards
Arun.
Posted
Comments
Sudip Saha 15-Mar-12 5:44am    
Check in IIS level is there set session time lessthan the default 20 min

1 solution

1. check the web.config perhaps the page2 cant be accessed by this user.
2. check the page2 code. perhaps this user is being kicked by the code inside that.
3. All the operations in page1 that you are performing should not in anyway clear the existing session information. i.e. no session.kill sort of function call and do not repopulate the session variable containing the userid from your code.

I hope some of this will help. if not show me some code and perhaps i can think more.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900