RE: Session Management question

2000-07-17 Thread Craig A. Zingerline

Todd,
Thanks for your response.  What I have right now is an AccountID, Message,
and Contact name that are in a table.  When the user logs in and is
authenticated, I set the session variable to the AccountID for that user,
which never changes.

Then, to show the contact name, I run a query on the pages that need to
display the name.  I pull the name based on the session.AccountID.  I would
like to get rid of that query and just set a session variable for their name
once they log in to save a little processing time.  However, when they make
a change to the database for their name I can't get the session variable
updated.  I've tried a number of things, but can't get the session variable
to update until I close my browser.  Any help is greatly appreciated.

Cheers,
Craig


Craig A. Zingerline
Advanced Media Productions
Web Application Developer
[EMAIL PROTECTED]
Phone:  508.647.5151
Fax:  508.647.5150

-Original Message-
From: Todd Ashworth [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 14, 2000 4:51 PM
To: [EMAIL PROTECTED]
Subject: Re: Session Management question


I'm not 100% sure I understand your question.

If their Session variable is a field that is different from their name, you
don't have to do anything special.  Just update the database as needed.  If
your SessionID IS their name, you might want to look into assigning the
Session variable a value from a field that can't be changed .. perefferably
a field with a value unique to that person.  Or, to simply make the Session
variable match the new name, just set the session variable to the new name
right after it is updated in the database.

Todd Ashworth

- Original Message -
From: "Craig A. Zingerline" <[EMAIL PROTECTED]>
To: "cf-talk" <[EMAIL PROTECTED]>
Sent: Friday, July 14, 2000 2:48 PM
Subject: Session Management question


| Hello,
|
| I have an application that allows a user to log in, and once authenticated
| and logged in, their accountID is pulled from the database table and is
set
| in a session variable.  From this, I want to display a welcome message
| saying something like 'Hello, [contact name], you receive a [discount] %
| discount.'  Both the contact name and discount are stored in the table,
| along with their AccountID.  My question is this:  If I want to allow that
| user to be able to change their name while logged in, how do I make sure
| that the session variable for the name is updated when they make a change?
| I have had problems trying to get this to work. Thanks for any help.
|
| Sincerely,
|
| Craig



--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Session Management question

2000-07-14 Thread Todd Ashworth

I'm not 100% sure I understand your question.

If their Session variable is a field that is different from their name, you
don't have to do anything special.  Just update the database as needed.  If
your SessionID IS their name, you might want to look into assigning the
Session variable a value from a field that can't be changed .. perefferably
a field with a value unique to that person.  Or, to simply make the Session
variable match the new name, just set the session variable to the new name
right after it is updated in the database.

Todd Ashworth

- Original Message -
From: "Craig A. Zingerline" <[EMAIL PROTECTED]>
To: "cf-talk" <[EMAIL PROTECTED]>
Sent: Friday, July 14, 2000 2:48 PM
Subject: Session Management question


| Hello,
|
| I have an application that allows a user to log in, and once authenticated
| and logged in, their accountID is pulled from the database table and is
set
| in a session variable.  From this, I want to display a welcome message
| saying something like 'Hello, [contact name], you receive a [discount] %
| discount.'  Both the contact name and discount are stored in the table,
| along with their AccountID.  My question is this:  If I want to allow that
| user to be able to change their name while logged in, how do I make sure
| that the session variable for the name is updated when they make a change?
| I have had problems trying to get this to work. Thanks for any help.
|
| Sincerely,
|
| Craig


--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.