Re: FormsAuthentication - Weird Behaviour

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: .NET Follower (amitagarwal-NET_at_SoftHome.net)
Date: 02/09/04


Date: Mon, 9 Feb 2004 09:22:37 +0530

just go step by step
monitoring from login ,in the temp internet files
whether the cookie is set ,
on set method
a cookie is stored in there
and on signout it is removed ....
so just observe there..

-- 
Thanks and Regards,
Amit Agarwal
Software Programmer(.NET)
"dotCore" <corehun_04@hotmail.com> wrote in message
news:OlOl6656DHA.2056@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I have VS2003.NET, XP Pro and SQL 2000. The .NET framework is 1.1 The
> problem I am having with the source code is that I cannot authenticate any
> user. The sproc returns the user name from database which also means that
> the user should be authenticated. It runs the SetAuthCookie method with
> success. The resulting page is no different than the initial page. The
login
> component is still there. When I try to access an admin page directly it
> cannot find any cookie. IIS for sure uses 1.1 framework. The browser
> security is at minimum and accepts all kind of cookies. Do you think that
> this hass something to do with web.config settings. A workmate of mine
> mentioned that there has been some changes in web.config structure from
1.0
> to 1.1 and it may affect the forms authentication process.
>
> Your help is highly appreciated in this urgent problem.
>
> Thanks
>
> ch
>
> P.S. Just to try, I created a new web project and put a label on a page
> which shows Request.IsAuthenticated.ToString() and a loginUrl having a
> single button which onclick runs FormsAuthentication.SetAuthCookie().
Before
> and after clicking the button label shows false.
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004


Relevant Pages

  • Re: Cookies Expiring due to different time zones.
    ... post to your aspx login, sending the cookie's date in a hidden field ... set the aspx login cookie using the date/time in the hidden field ... This is the code I am using to create the ticket, ... Your problem is that you're using an extremely short time for the cookie expiration. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Accessing and displaying SSL web pages and cookies from a windows form
    ... or LoadXML calls to urls on the website in order to get data or post data to ... first redirected to a SSL login page, if a particular cookie is not present, ... cookie is not present instead of getting the data. ... >> the data in the cookie and also not redirect to the login page. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: [PHP] Need secure login
    ... Thanks Justin, actually I was also thinking of the same, but just wanted to ... > c) the user not deleting the cookie ... > Likewise, you can't tie a member to a mac address, or to an IP address. ... Make sure that a user can't login from two different places at ...
    (php.general)
  • Referencing variable in calling class?
    ... I assume because the cookie destruction is being sent down in that page ... when that page renders it still appears as if the user is logged ... So, I thought perhaps as part of my logout routine, I could set a variable ... whether or not it displays the 'login' url or the 'logout' url. ...
    (php.general)
  • Re: How to share session with IE
    ... my browser module if necessary. ... program can load the cookies from your real browser's cookie store ... "need to login" condition, and react accordingly. ... Another option instead of making your program run through a series of clicks and text inputs, which is difficult to program, is to browse the html source until you find the name of the script that processes the login, and use python to request the page with the necessary form fields encoded in the request. ...
    (comp.lang.python)