all groups > inetserver asp db > may 2005 >
You're in the

inetserver asp db

group:

Session


Re: Session Jeff
5/23/2005 12:00:00 AM
inetserver asp db:
lol, i replied back before i saw this, saying it was simple. sometimes the
easiest things escape me..

thanks Bob


[quoted text, click to view]

Session Jeff
5/23/2005 4:17:10 PM
Hey gang me again. Have a quick ? for ya.

Is there a way to update a session? What I mean is this. Let's say I have a
site, that uses sessions for login purposes, and lets members gain access
based on the session.
I have a profile update page, where they can change password, name, email,
stuff like that. But if a member changes his username, I would like to be
able to change the session("username") as well. Without changing it, they
can't access any other member pages, unless they logout, then login again
using the new name. Is there a way around this??
Thanks
Jeff

Re: Session Bob Barrows [MVP]
5/23/2005 4:19:06 PM
[quoted text, click to view]

session("username") = newusername

duh?

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Re: Session Jeff
5/23/2005 4:26:18 PM
nevermind...it was simplier than i thought it would be.
i just made a line
session("username") = request.form("new_username")



[quoted text, click to view]

AddThis Social Bookmark Button