Forums
This topic is locked
not distinguishing new and existing member
Posted 01 Nov 2001 23:31:31
1
has voted
01 Nov 2001 23:31:31 Val Dubuis posted:
Need some help to come up with best solution please.I am working on "member" page for some website. Users who get to this page are either existing members who came from "login" page or new members who just got registered. Obviously, they reached "member" page from two different forms.
The problem: how to pass their NameID and store it in the same session or maybe other variable? Whether they are new or old does not change the content. But I want to greet them and filter recordset by their NameID.
Or is there better and simpler way ???
Thanks in advance.
Replies
Replied 02 Nov 2001 15:33:50
02 Nov 2001 15:33:50 Joel Martinez replied:
well, this could go two ways, if the nameID is entered by the user, then you can just store it in a session. but if the nameID is an autonumber, then the best solution is to send them to the login page after they sign up, that way they get the nameID, and you don't have to worry about getting it right after you insert the data.
Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
Replied 02 Nov 2001 16:15:36
02 Nov 2001 16:15:36 Val Dubuis replied:
nameID is entered by the user and it is a string. I would like to avoid sending first time users to login page but instead will let them know what their name and password is and give them a choice to go to "member" page. And again I am not sure how to store new member nameID and old member nameID - in the same session var or 2 different ones?
Replied 02 Nov 2001 18:21:38
02 Nov 2001 18:21:38 Joel Martinez replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
nameID is entered by the user and it is a string. I would like to avoid sending first time users to login page but instead will let them know what their name and password is and give them a choice to go to "member" page. And again I am not sure how to store new member nameID and old member nameID - in the same session var or 2 different ones?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>Hmm... perhaps I'm misunderstanding... if the content doesn't change, then why would you need two different session vars?
if what you are trying to do is greet the first time user differently than a returning member, then you can send something over in the querystring like [member.asp?firsttime=true]
then checking for it in code is easy:<pre id=code><font face=courier size=2 id=code><%IF request("firsttime" = "true" THEN%>
HELLO New User!!!!
<%END IF%></font id=code></pre id=code>
Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
nameID is entered by the user and it is a string. I would like to avoid sending first time users to login page but instead will let them know what their name and password is and give them a choice to go to "member" page. And again I am not sure how to store new member nameID and old member nameID - in the same session var or 2 different ones?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>Hmm... perhaps I'm misunderstanding... if the content doesn't change, then why would you need two different session vars?
if what you are trying to do is greet the first time user differently than a returning member, then you can send something over in the querystring like [member.asp?firsttime=true]
then checking for it in code is easy:<pre id=code><font face=courier size=2 id=code><%IF request("firsttime" = "true" THEN%>
HELLO New User!!!!
<%END IF%></font id=code></pre id=code>
Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/