473,503 Members | 5,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[Form Authentication] - Modify ReturnUrl value

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
1 2524
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1481
by: VR | last post by:
Hi, I am using Forms type of authentication, but having problems redirecting users to default page after they get authenticated. My default page is default.aspx, but it's in 'public'...
9
4612
by: Hermit Dave | last post by:
Hi, I am making a web application (rather two applications) one which is host and used by customers when they are just browsing through products. The second application resides on a secure...
3
4729
by: Martin | last post by:
Dear fellow ASP.NET programmer, I stared using forms authentication and temporarily used a <credentials> tag in web.config. After I got it working I realized this wasn't really practical. I...
0
949
by: Hermit Dave | last post by:
Steven, Just a quick query.... in the two apps i have... it works fine on my local machine... but was talking to someone who was implementing a very similar method.... and it was then that i...
11
2937
by: David W. Simmonds | last post by:
I have a form that will prompt for a user name/password. In VS.NET, I have the protected form in a folder named Admin. I have a Web.config file in that folder as well. It contains the following...
2
2882
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
1
1143
by: Miguel Dias Moura | last post by:
Hello, I am working on my first Asp.Net 2.0 web site using VS2005. I know about the login controls on Asp.Net 2.0 but they seem really strict. I would prefer to create my own forms and using...
0
1471
by: tranky | last post by:
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...
0
1342
by: tranky | last post by:
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...
0
7188
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7258
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6970
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7441
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5558
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4987
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3146
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
366
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.