Re: After Authenticated, How do I know if session has ended? How retrieve username?
From: Javier Miranda (jamiranda@lycos.com)
Date: 03/20/03
- Next message: Javier Miranda: "Re: Custom Permission"
- Previous message: Mike Moore [MSFT]: "Re: Securing Non ASP.Net Files"
- In reply to: Jose Betances: "After Authenticated, How do I know if session has ended? How retrieve username?"
- Next in thread: ashok Patel: "After Authenticated, How do I know if session has ended? How retrieve username?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Javier Miranda" <jamiranda@lycos.com> Date: Wed, 19 Mar 2003 20:27:38 -0400
Are you getting an auto rediraction if you try to access a protected page?
What authentication mechanism you are using on your site?
Your code looks OK. I thing you are missing a setting.
"Jose Betances" <jbetances@hotmail.com> wrote in message
news:Obp2Mob7CHA.1808@TK2MSFTNGP12.phx.gbl...
>
> I have the following entry in the Web.Config file:
>
> <authentication mode="Forms">
> <forms name="BlouseLogin" loginUrl="./secured/buslinks.aspx"
> protection="all" path="/" timeout="20" />
> </authentication>
> <authorization>
> <deny users="?" />
> </authorization>
>
> in code(ASPX file), I log the user as follows:
> FormsAuthentication.SetAuthCookie(txtUserName.Text,false);
>
> My question is how can I retrieve the user_id and whether the session
> has ended or not. I have a WebForm that displays different information
> to users that are not logged on from that shown to authenticated users.
> Thank you very much for your help.
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
- Next message: Javier Miranda: "Re: Custom Permission"
- Previous message: Mike Moore [MSFT]: "Re: Securing Non ASP.Net Files"
- In reply to: Jose Betances: "After Authenticated, How do I know if session has ended? How retrieve username?"
- Next in thread: ashok Patel: "After Authenticated, How do I know if session has ended? How retrieve username?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]