Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Login Page

Guest
Apr 19, 2006 Apr 19, 2006

Copy link to clipboard

Copied

I have built a simple login system, (as per Newlands Tours) however, when the user is passed to the details page, it returns all results, what do i need to do, use a form variable or a session variable to restrict the data to just that users??

thanks
TOPICS
Server side applications

Views

276
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 19, 2006 Apr 19, 2006

Copy link to clipboard

Copied


If you have built your login system using the Server Behaviours built into
Dreamweaver - and if your data contains a users ID to identify that record
to that user, then you can use a session variable (once you create it) when
the user logs in to filter your details page by.

I have a simple tutorial that details how to add an extra Session variable
to the login code, such as the UserID, here:
http://robgt.com/tutorials/loginsessions.asp

The example uses VBScript, but the same principle should apply to any
scripting language.
HTH
Cheers,
Rob
http://robgt.com/ [Tutorials and Extensions]
Firebox stuff: http://robgt.com/firebox
Skype stuff: http://robgt.com/skype
Dell stuff: http://robgt.com/dell
SatNav stuff: http://robgt.com/satnav



Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 19, 2006 Apr 19, 2006

Copy link to clipboard

Copied

this seemed great, but it doesn't tell me how to use that session variable?? i just get server 500 error?? is there anything i should be doing?? that i am not doing!!!!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 19, 2006 Apr 19, 2006

Copy link to clipboard

Copied

LATEST

>but it doesn't tell me how to use that session variable??

Sorry... I guess that part needs some clarification?
You would filter the recordset on your details page using the session
variable to identify that users record.

If you are unsure of how to use parameters in your recordsets, please refer
to the help file as it explains it in there.

HTH
Cheers,
Rob
http://robgt.com/ [Tutorials and Extensions]
Firebox stuff: http://robgt.com/firebox
Skype stuff: http://robgt.com/skype
Dell stuff: http://robgt.com/dell
SatNav stuff: http://robgt.com/satnav



Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines