Click here to Skip to main content
14,843,569 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello everybody

iam created login page , i need cookie to response redirect to data page when user login once to my wibsite and when user login second time i have to response to home page not in data page

thank you
Posted
Comments
[no name] 15-Sep-13 21:04pm
   
Okay so do you have some sort of a question or maybe a description of some sort of a problem?

hmm i think you can do that by adding value to ur URL when your user log in first then
he/she log out add value to url like this.

"urDefaultPage.aspx?FirstLogin=hasvalue"\"


after that you can check if ther is as value by Request.QueryString("FirstLogin") if that is null / empty you can direct your user to "data page" and if it has value direct him/her to your "home page"



sorry for my bad english
   
v2
Simply check whether the Cookie exist or not. Based on that make the redirection.

HttpCookieCollection.Get Method (String)[^]

Regards..:)
   
v2

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