Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Why Outlook creating Different SessionId for a single session

Reply
Thread Tools

Why Outlook creating Different SessionId for a single session

 
 
Anthony Jones
Guest
Posts: n/a
 
      04-08-2006

"George Hester" <> wrote in message
news:%...
> For the Session that is started. But you cannot be sure that Session will
> hold throughout the application. Use cookies written to disk. The issue

is
> gone.
>


Well that depends on your application. The point is ASP is not stateless as
you stated. ASP has a session object designed to maintian state between
requests within a session.

For some applications the lifetime of the session is sufficient for others
it is not.




 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      04-08-2006

"rayala" <> wrote in message
news: oups.com...
> Anthony,
>
> I am right back on track.
>
> one approach i though is creating SessionId at login and pass to all
> the pages using Query String with some sort of encryption.
>
>
> i am sorry i did not follow the solution you have suggested, here is
> what i understood base on your suggestion.Correct me if i am wrong.
>
> we should store the GUID in the users table for each user as soon they
> login
>
> for each new login we should check whether any GUID exists for this
> user or not.If one exists then he has logged in some where else, so
> tell the new user to either go and clear that user session and login
> back.
>


The problem with this approach is that user may not know where else they are
logged in or worse their browser crashed before they were able clear their
log in. What do they do now?

A better approach is to allow them to login and make sure any other
outstanding logged in session is unusable.

> what is your sessionGUID mean then.
>


I mean store the GUID in the Session object.

When user logons on create a unique ID and store it against the user in a
database.

Store this same unique ID in the Session object as well.

When any page is requested (use an include page) have it compare the unique
ID stored in the session object against the unique ID in the database for
the user. They should match. If they don't it means they have logged in
somewhere else. In that case clear the session and redirect them to the
logon page.


>
> Thanks for your replies, i hope i am not bothering you with my queries.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Session by SessionID (in a different context) patrick.nee.jr@gmail.com ASP .Net 0 09-14-2007 04:31 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
generate own unique sessionid instead standard asp.net 120bit sessionid Ronald ASP .Net 6 02-23-2004 08:03 AM
Is it possible to point current context's session to another active session based on a SessionID Roger Stavcode ASP .Net 1 01-17-2004 04:22 AM
Is it possible to point current context's session to another active session based on a SessionID Roger Stavcode ASP .Net 0 01-11-2004 06:42 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57