By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,363 Members | 3,622 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,363 IT Pros & Developers. It's quick & easy.

[Form Authentication] - Modify ReturnUrl value

P: n/a
Hi,
i've a problem, and i know you can help me to solve it.
I'm using Asp Net and Form Authentication.
When i'm anonymous and i must show a protected page, i'm redirected into
a login.aspx page and in the path of the page (in the address bar) is
added "ReturnUrl=...ecc...eccc...". It's the page where i'm redirect
when i logged in.

Ok.

Now, i'll want to change the value of ReturnUrl, and i'll want to crypt it.

from "ReturnUrl=/home/home.aspx"
to "ReturnUrl=Xfdòlmremvemmpem"

My problem isn't the decrypt algorithm (i have it), my problem is how i
can access to the ReturnUrl value.

Please help me.
I hope.

Bye! and thanx to all.
Feb 23 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
tranky,

You might want to ask what the point of doing something like that is.
The user has the URL of the original page that they are trying to access
before they try to go to the page, so encrypting that value isn't going to
add any security, or prevent them from knowing something they already know.

What is it that you want to do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"tranky" <NO****@GRAZIE.ITwrote in message
news:47***********************@reader2.news.tin.it ...
Hi,
i've a problem, and i know you can help me to solve it.
I'm using Asp Net and Form Authentication.
When i'm anonymous and i must show a protected page, i'm redirected into a
login.aspx page and in the path of the page (in the address bar) is added
"ReturnUrl=...ecc...eccc...". It's the page where i'm redirect when i
logged in.

Ok.

Now, i'll want to change the value of ReturnUrl, and i'll want to crypt
it.

from "ReturnUrl=/home/home.aspx"
to "ReturnUrl=Xfdòlmremvemmpem"

My problem isn't the decrypt algorithm (i have it), my problem is how i
can access to the ReturnUrl value.

Please help me.
I hope.

Bye! and thanx to all.
Feb 23 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.