Click here to Skip to main content
15,607,338 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an ASP.NET web site. Recently I modified th site to generate a random token when a user login into the site to avoid duplicate login on the same client computer. The next thing is adding the generated token to the query string of the url after a user logs in, and let the token always go with the url before the user logs out. Then the trouble comes - there are so many ways to jump from a page to another page - Response.Redirect, Server.Transer, <a href="..." />, LinkButton.PostBackUrl, HyperLink.NavigateUrl, (javascrit)window.location, etc, many of which have been used in my site. It would be unbelievable to manually add the token to all of them. Is there any way to automatically achieve this - like isapi filter, httpmodule, client script, and so on?

Thanks for your help in advance!
Updated 24-Oct-10 16:29pm

1 solution

Try use all you token in url separate them with url address by using ? sign
such like if i want to pass the username in url then i tried following method in my project

Or Better way you create one public variable in call module and update them in some another page from where you want to navigate and use them in your next navigation page.
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