Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I keep getting redirected to login page as if i had been logged out even if I just open some page and login.

I have used sessions to keep track of login. If the session value is null I redirect it to the main page. I always get the session value null and thus redirected to login page.

Does anyone have any idea of how to solve this issue?
Posted
Updated 31-May-10 6:20am
v2

TanzeelAhmed wrote:
does any body have any idea how to solve dis matter???


Would not be able to help much without the relevant code.

You may debug the code and check: after the user enters valid user id and password, Session is created properly or not.
 
Share this answer
 
Once I published my application to the webhosting I had similar problem.

Experiment with system.web/machineKey element under Web.Config:

<system.web>
   <machineKey validationKey="E2..." decryptionKey="3C..." validation="SHA1" decryption="AES" />
</system.web>
 
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