Session
am 23.05.2005 22:17:10 von jeff
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
am 23.05.2005 22:19:06 von reb01501
Jeff wrote:
> 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
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
am 23.05.2005 22:26:18 von jeff
nevermind...it was simplier than i thought it would be.
i just made a line
session("username") = request.form("new_username")
"Jeff" wrote in message
news:KpOdnboqeMWDpA_fRVn-ig@adelphia.com...
> 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
am 23.05.2005 23:09:32 von jeff
lol, i replied back before i saw this, saying it was simple. sometimes the
easiest things escape me..
thanks Bob
"Bob Barrows [MVP]" wrote in message
news:OVYluS9XFHA.796@TK2MSFTNGP10.phx.gbl...
> Jeff wrote:
>> 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
>
> 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.
>
>