473,394 Members | 1,697 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Forms authentcation question

Hi there,

I have a question.

I've implemented forms authentication in my application.
now, the problem is:
if the user leave his workstation while he's working and comes back
after the session has expired, the system will ask him to relog as soon
as he postback the page. Aafter the user insert login info he will be
redirect to the last page he was working on before session expiration. I
want to avoid this and transfer the control to the default page after
login. How can I achieve this???

Thanks in advance,
Stefano Mostarda MCP
Rome Italy
Nov 18 '05 #1
1 786
http://msdn.microsoft.com/library/de...cturltopic.asp

You could take a look at the code in the Login_Click method. The very last
line redirects to the string returned by the GetRedirectUrl method - you
could just pass in a string to your default page instead.

Response.Redirect("/default.aspx"); //whatever your default happens to be

"Stefano Mostarda" <st**************@fastwebnet.it> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi there,

I have a question.

I've implemented forms authentication in my application.
now, the problem is:
if the user leave his workstation while he's working and comes back
after the session has expired, the system will ask him to relog as soon
as he postback the page. Aafter the user insert login info he will be
redirect to the last page he was working on before session expiration. I
want to avoid this and transfer the control to the default page after
login. How can I achieve this???

Thanks in advance,
Stefano Mostarda MCP
Rome Italy

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: KK | last post by:
Windows Forms Inheritance, Incomplete? I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can be used effectively if the...
2
by: KK | last post by:
** Posting it here cause after couple of days no body responded.** I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can...
6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
3
by: G-Fit | last post by:
Hello group, I use Forms Authentication in an intranet website. This website has a framed default.aspx page : one left frame for a menu, one right frame for the content. The menu depends on the...
1
by: Sunil Sabir | last post by:
Dear All, I have 4 web ASP.net Forms. I use a image control to move between these forms.The problem I am facing is that I cannot preserve the state of the form when moving between different...
15
by: Alex | last post by:
Does anybody know why VB.NET would omit the Forms collection available in previous versions versions of VB? I imagine that there must be a reason why they decided to do away with it, but I can't...
1
by: yossimotro | last post by:
Hi guys, I'm now rebuilding my website to work in forms authentcation instead of windows' authentication as it used to be. When I had windows authentication I used the login name to perform...
1
by: Troy Bull | last post by:
Greetings I am trying to use a singleton to hold a group of forms. I have a MDIMaster form. I have a class called Forms; Forms is a singleton. I want to do something like the following. In...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
1
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...
0
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...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.