Re: Authentication and sessions
From: Dan Brussee (dbrussee_at_nc.rr.com)
Date: 02/28/04
- Next message: SOS: "Sockets"
- Previous message: Bruno Alexandre: "help on ASP"
- In reply to: Paul: "Re: Authentication and sessions"
- Next in thread: Paul: "Re: Authentication and sessions"
- Reply: Paul: "Re: Authentication and sessions"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 28 Feb 2004 16:09:47 GMT
I'll take a stab at the final Q(s)...
A new window opened from the original one will have the same session
ID. If this is not desired, you will need to handle this.
Security is in place to disallow access to cookies from another
server, or even another virtual web on the same server. You can,
however place a cookie at the root of a web and access it from
different sub-webs. For instance, you could place a cookie while in
www.domain.com/first/page.aspx and tell it to reside at
www.domain.com. Now, another page, lets call
www.domain.com/second/page.aspx could get access to that cookie. It is
assumed that if you place the cookie at the root, you have the rights
to do so and that you will want this information from another level of
the same web.
On Sat, 28 Feb 2004 15:06:05 +0000, Paul <paul@hotmail.com.invalid>
wrote:
>In article <#YTidbe#DHA.2348@TK2MSFTNGP09.phx.gbl>, .NET Follower
><amitagarwal-NET@SoftHome.net> writes
>>hi,
>>basically in login code
>>we store userid in session
>>and then check on each page
>>if that Sesssion[userid] exists
>
>Yeah, I can do that.... but..... we use Windows authentication on our
>Intranet so if we detect that the cookie doesn't exist (say, due to 20
>mins inactivity) then we re-direct to a login page, but of course
>windows thinks that the user is still logged on so immedaitely
>re-authenticates (even if they logged on to the PC using a generic acct
>and logged on to the web app thro' IE)
>
>How can we cancel or revoke that (IE set) authentication to make the
>user have to re-authenticate to the web app. I have seen a quite
>complex method of using forms authentication to authenticate against an
>active directory, but this seems to require passords being sent in plain
>text (or the setting up of SSL to protect them.)
>>
>
>One final Q. Session variables relate to that user session (that is the
>local browser session)... yes?
>
>1. How do they cope with opening new windows from the original one?
>
>2. can a session variable (which is essentially a cookie) that has been
>set by http://intranetserver1/webapp1 be read by
>http://intranetserver2/someotherwebapp ? (assuming both apps know the
>name of the session var.)
- Next message: SOS: "Sockets"
- Previous message: Bruno Alexandre: "help on ASP"
- In reply to: Paul: "Re: Authentication and sessions"
- Next in thread: Paul: "Re: Authentication and sessions"
- Reply: Paul: "Re: Authentication and sessions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|