Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

checknew user & insert in db -works fine but....

Posted 04 Apr 2002 18:19:14
1
has voted
04 Apr 2002 18:19:14 Dave Clarke posted:
hi all
me again. i am a pain

I am working in asp/javascript in ud and i have set up a page for a new user to sign up and choose a user name and password. this works fine, and inserts their details in the proper db fields, however they are then returned to the site but they are not logged in with their new username and password.
is it possible to do this or do they need to manually login with theier new username and password?
If this is the case can i pass these from the application form to a login page so that they are already in the login form?

thanks

Dave

Replies

Replied 04 Apr 2002 20:19:13
04 Apr 2002 20:19:13 Mark Wills replied:
I would hand edit the code that does the insert, and set the session variable MM_Username to the user name added to the database.

UD uses this session variable in conjuction with the Restrict Access To Page behaviour, to check if the user is logged in.

Sorry - if you were coding in ASP I could help you a bit more, but I HATE JAVASCRIPT!!!!!

Mark.

Replied 05 Apr 2002 01:44:54
05 Apr 2002 01:44:54 Owen Eastwick replied:
"I HATE JAVASCRIPT!!!!!" - Doesn't say that on your CV.<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 06 Apr 2002 02:30:14
06 Apr 2002 02:30:14 Dave Clarke replied:
Thanks Mark
I have a server behaviour to set a session variable from a form field but when I have tried it, it doesn't seem to do it, maybe it can't set MM_username cos it's reserved by UD?

Dave

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I would hand edit the code that does the insert, and set the session variable MM_Username to the user name added to the database.

UD uses this session variable in conjuction with the Restrict Access To Page behaviour, to check if the user is logged in.

Sorry - if you were coding in ASP I could help you a bit more, but I HATE JAVASCRIPT!!!!!

Mark.


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 06 Apr 2002 02:42:12
06 Apr 2002 02:42:12 Dave Clarke replied:
Well stone the crows , I have just tried that server behaviour again and it's gone and done it!!!! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Thanks Mark
I have a server behaviour to set a session variable from a form field but when I have tried it, it doesn't seem to do it, maybe it can't set MM_username cos it's reserved by UD?

Dave

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I would hand edit the code that does the insert, and set the session variable MM_Username to the user name added to the database.

UD uses this session variable in conjuction with the Restrict Access To Page behaviour, to check if the user is logged in.

Sorry - if you were coding in ASP I could help you a bit more, but I HATE JAVASCRIPT!!!!!

Mark.


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote><img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

Reply to this topic