473,322 Members | 1,522 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,322 software developers and data experts.

Forms Authentication Signoff

I am using forms authenication with a custom signon page and I execute the
following statement to force a signoff from a signoff web page...

FormsAuthentication.SignOut();

I have noted that if I then redierct to another form that is supposed to be
protected from entry due to lack of authentication that the form is displayed
anyway. If I then enter data into the form and post the form, processing is
only then redirected to my custom sign-on form. My preference and
understanding is that the form not even be displayed due to lack of
authentication. Sometimes it works correctly.... and other times it does
not.

The same behavior is exhibited if I execute the
FormsAuthentication.SignOut() and then simply change the Browser URL to
attempt to navigate back to a restricted web page. The web page is
displayed.... however once I enter data and post the form, only then is my
signon web page displayed.

Help !!!

--
Philip
Nov 18 '05 #1
3 1397
Are you using Server.Transfer or Response.Redirect?
"Philip" <ph****@softwareforever.com> wrote in message
news:31**********************************@microsof t.com...
I am using forms authenication with a custom signon page and I execute the
following statement to force a signoff from a signoff web page...

FormsAuthentication.SignOut();

I have noted that if I then redierct to another form that is supposed to be protected from entry due to lack of authentication that the form is displayed anyway. If I then enter data into the form and post the form, processing is only then redirected to my custom sign-on form. My preference and
understanding is that the form not even be displayed due to lack of
authentication. Sometimes it works correctly.... and other times it does
not.

Nov 18 '05 #2
I am using Response.Redirect.... I just tried Server.Transfer and I see the
same results.

Philip
"ESPN Lover" wrote:
Are you using Server.Transfer or Response.Redirect?
"Philip" <ph****@softwareforever.com> wrote in message
news:31**********************************@microsof t.com...
I am using forms authenication with a custom signon page and I execute the
following statement to force a signoff from a signoff web page...

FormsAuthentication.SignOut();

I have noted that if I then redierct to another form that is supposed to

be
protected from entry due to lack of authentication that the form is

displayed
anyway. If I then enter data into the form and post the form, processing

is
only then redirected to my custom sign-on form. My preference and
understanding is that the form not even be displayed due to lack of
authentication. Sometimes it works correctly.... and other times it does
not.


Nov 18 '05 #3
this because the browser cached the page, it did not go to the server to get
it. you can expire the pages, but then when the user goes back through
history, they will get a dialog asking if they want to repost.

-- bruce (sqlwork.com)
"Philip" <ph****@softwareforever.com> wrote in message
news:31**********************************@microsof t.com...
I am using forms authenication with a custom signon page and I execute the
following statement to force a signoff from a signoff web page...

FormsAuthentication.SignOut();

I have noted that if I then redierct to another form that is supposed to be protected from entry due to lack of authentication that the form is displayed anyway. If I then enter data into the form and post the form, processing is only then redirected to my custom sign-on form. My preference and
understanding is that the form not even be displayed due to lack of
authentication. Sometimes it works correctly.... and other times it does
not.

The same behavior is exhibited if I execute the
FormsAuthentication.SignOut() and then simply change the Browser URL to
attempt to navigate back to a restricted web page. The web page is
displayed.... however once I enter data and post the form, only then is my
signon web page displayed.

Help !!!

--
Philip

Nov 18 '05 #4

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

Similar topics

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: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
1
by: NWx | last post by:
Hi, I implement forms authentication in my application. So I have a login form. Actually I have two custom Web controls, one to login and one to redirect user to Register page Login custom...
2
by: Eric | last post by:
I am trying to build an app where the stuff in the root directory is open to all, but anything under the Restricted directory requires you to login and I want to use Forms to do it. I'm having...
0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
7
by: Justin | last post by:
I am trying to password protect a subdirectory using forms authentication. I am using the "Location" tag to specify the directory to be protected. The login.aspx page is in the root directory of...
5
by: V. Jenks | last post by:
Using forms authentication, can I control which pages and/or directories a user would have access to or is that only available with Windows authentication? Thanks!
4
by: =?Utf-8?B?R3V1czEyMw==?= | last post by:
Hi, I created a web site on a remote server. To logon the user must enter a user id and password. The site is uses Forms Authentication. The web config file looks as follows: ...
5
by: Rory Becker | last post by:
Having now created a Custom MembershipProvider that seems to work correctly with my Logon and ChangePassword controls, I am, as they say, a happy bunny. The next stange is to move on to the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
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 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.