I have a logon page that is may be called by the Forms Authentication setup.
This would put a ReturnURL as part of the URL. I would normally then just
issue a:
FormsAuthentication.RedirectFromLoginPage(logon.tx t,true)
But I also am giving them an option to register which would go to a new
page. From this page, when they submit, I want to go the original page they
were heading for (ReturnURL) when the went to the logon page.
What I am doing at the moment is putting the ReturnURL in a session cookie.
When I am done I would just do something like:
server.transfer(session("ReturnURL")).
The problem is that the logon cookie that
FormsAuthentication.RedirectFromLoginPage sets would not be set and when the
user goes to the next page, he would first go to the logon page.
I don't want that to happen. Is there a way to set the cookie the way that
FormsAuthentication.RedirectFromLoginPage does before I do the transfer?
Thanks,
Tom. 2 3477
If I understand correctly, check out FormsAuthentication.SetAuthCookie: http://msdn.microsoft.com/library/de...ookietopic.asp
Hope this helps,
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/
"tshad" <ts**********@ftsolutions.com> wrote in message
news:eO**************@TK2MSFTNGP10.phx.gbl... I have a logon page that is may be called by the Forms Authentication
setup. This would put a ReturnURL as part of the URL. I would normally then just issue a:
FormsAuthentication.RedirectFromLoginPage(logon.tx t,true)
But I also am giving them an option to register which would go to a new page. From this page, when they submit, I want to go the original page
they were heading for (ReturnURL) when the went to the logon page.
What I am doing at the moment is putting the ReturnURL in a session
cookie. When I am done I would just do something like:
server.transfer(session("ReturnURL")).
The problem is that the logon cookie that FormsAuthentication.RedirectFromLoginPage sets would not be set and when
the user goes to the next page, he would first go to the logon page.
I don't want that to happen. Is there a way to set the cookie the way
that FormsAuthentication.RedirectFromLoginPage does before I do the transfer?
Thanks,
Tom.
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@tk2msftngp13.phx.gbl... If I understand correctly, check out FormsAuthentication.SetAuthCookie:
http://msdn.microsoft.com/library/de...ookietopic.asp
That was what I was looking for.
Thanks,
Tom.
Hope this helps, Karl
-- MY ASP.Net tutorials http://www.openmymind.net/
"tshad" <ts**********@ftsolutions.com> wrote in message news:eO**************@TK2MSFTNGP10.phx.gbl... I have a logon page that is may be called by the Forms Authentication setup. This would put a ReturnURL as part of the URL. I would normally then just issue a:
FormsAuthentication.RedirectFromLoginPage(logon.tx t,true)
But I also am giving them an option to register which would go to a new page. From this page, when they submit, I want to go the original page
they were heading for (ReturnURL) when the went to the logon page.
What I am doing at the moment is putting the ReturnURL in a session cookie. When I am done I would just do something like:
server.transfer(session("ReturnURL")).
The problem is that the logon cookie that FormsAuthentication.RedirectFromLoginPage sets would not be set and when the user goes to the next page, he would first go to the logon page.
I don't want that to happen. Is there a way to set the cookie the way that FormsAuthentication.RedirectFromLoginPage does before I do the transfer?
Thanks,
Tom.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Cantekin Guneser |
last post by:
i have prepared my web config file as follow;
<authentication mode="Forms" >
<forms name="jedi" loginUrl = "WebForm1.aspx" protection = "All" timeout =
"10" path="/"></forms>
...
|
by: Jacob Crossley |
last post by:
I have two web applications on the same server:
http://localhost/ModemUpgrade
and
http://localhost/TestFormAuth
The web.config of ModemUpgrade:
|
by: Jacob Crossley |
last post by:
I have two web applications on the same server:
http://localhost/ModemUpgrade
and
http://localhost/TestFormAuth
The web.config of ModemUpgrade:
|
by: Bryan |
last post by:
Hi, here's my cod
If AuthorizeUser(txtUsername.Text, txtPassword.Text) The
If Request.QueryString("ReturnURL") > "" The
FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, False
Els...
|
by: Danny |
last post by:
Hi there,
I was wondering if anyone would be able to shed some light on the
following behaviour for me.
I have an application that is using Forms Authentication with
non-persistent cookies, a...
|
by: Phil Certain |
last post by:
Hi
I'm building a site that has publicly available pages and password
protected pages. Publicly available pages reside in:
/public
and password protected pages reside in:
/private
|
by: Dean R. Henderson |
last post by:
I setup FormsAuthentication on a couple websites where it has been working
as expected for a long time. I used this code to setup the same type of
authentication on a new website I am working on...
|
by: rn5a |
last post by:
A web.config file has the following code:
<configuration>
<system.web>
<authentication mode="Forms">
<forms name="NETConnectCookie" loginUrl="Login.aspx">
<credentials passwordFormat="SHA1"/>...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |