Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Session setup

$
0
0
Re: Session setup
Web Connection
Re: Session setup
11/01/2012
11:52:43 AM
3MU0PGMZ8 Show this entire thread in new window
Gratar Image based on email address
From:
Rick Strahl
To:
Attachments:
None

+1 to Marty's explanation. If you run two browser instances they are often treated as the same browser session. Make sure to try with two different browsers.

Having the same issue on some sessions I'm doing today at a conference :-)

+++ Rick ---



It seems that I only understand about half of how to use sessions in Westwind. I have evidently have sessions turned on because I enable use set session and get session successfully but now that I have multiple users accessing the site is become obvious that I’m not doing this correctly.

When I ran two sessions of my browser and logged in as two different people the first person was showing up with the same information as the second one. When I looked at the table wwsession I saw only one record even after both of those people had logged out.

The first thing I make a user do is give me their email address and password and I look them up in a FoxPro table to make sure that they are legitimate. Once I determined that I want to create a session for them so that I can store their access information. Would it be in this code that I issue a new session command? If I do, I assume that Westwind adds a new record to the wwsession table, but how do I get access to the session ID that is assigned? If there are multiple sessions open from multiple people logging in the same time and is Westwind know which entry in wwsession is to be used for a setsessionvar request?




Rick Strahl
West Wind Technologies

Making waves on the Web

from Vegas, baby!


Viewing all articles
Browse latest Browse all 10393

Trending Articles