Question

I send value to another page by response.redirect the URL have the value and it is very too long :

=">http://x.elarabygroup.com/SiteLogin.aspx?token=1ddd11ekkHDLSAFJ;AHFJEHJKFKJFJHF#=

I want to hide or display another url as http://x.elarabygroup.com/playgame/

Response.Redirect("http://x.elarabygroup.com/SiteLogin.aspx?token=" + respnse);
Was it helpful?

Solution

You should use session instead if you want to hide it:

Assuming both pages are on the same domain of course.

Session["token"] = "CAACgVEYG6y4BAPpCA576tZCOVTaiStohQHcFMj8TnkYDiIBWnuQjoMSRMSjmTlZCK0JhdyWP8MYiFQELLGUMht07vKZCVLaxz7gBASydeG5PqBB9dypqvEh7tyTR1nZCRvZBITNEcnkDj00pFxNGKfi9v8U5UkVAjQlLuY08aVANUgZC9dZAi852216uCsTgpcZD#=";
Response.Redirect("http://x.elarabygroup.com/SiteLogin.aspx");

in SiteLogin.aspx, check for the token.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top