HighDots Forums  

Use session variable in Insert record

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Use session variable in Insert record in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
BROnstott
 
Posts: n/a

Default Use session variable in Insert record - 07-14-2008 , 07:00 PM






Help, please!

I need to add a record to a table; one of the fields in the table is the
user_id. When I try to use the insert record server behavior, there is no way
to select the user_id session variable! How is this done?


Reply With Quote
  #2  
Old   
Ted Dawson
 
Posts: n/a

Default Re: Use session variable in Insert record - 07-14-2008 , 07:54 PM






Quote:
I need to add a record to a table; one of the fields in the table is the
user_id. When I try to use the insert record server behavior, there is no
way
to select the user_id session variable! How is this done?

Use a hidden variable in the form, and assign it the value of the session.



Reply With Quote
  #3  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Use session variable in Insert record - 07-14-2008 , 09:18 PM



..oO(Ted Dawson)

Quote:
I need to add a record to a table; one of the fields in the table is the
user_id. When I try to use the insert record server behavior, there is no
way
to select the user_id session variable! How is this done?

Use a hidden variable in the form, and assign it the value of the session.
And what if the user manipulates that value? Hidden form fields _always_
require a validation on the server. One purpose of a session is to avoid
that sensitive data is sent to the client, where it can be manipulated.

Micha


Reply With Quote
  #4  
Old   
Ted Dawson
 
Posts: n/a

Default Re: Use session variable in Insert record - 07-14-2008 , 10:09 PM



Quote:
to select the user_id session variable! How is this done?

Use a hidden variable in the form, and assign it the value of the session.

And what if the user manipulates that value? Hidden form fields _always_
require a validation on the server. One purpose of a session is to avoid
that sensitive data is sent to the client, where it can be manipulated.

Exactly how is the value of a SESSION VARIABLE manipulated by the client?
And validated?



Reply With Quote
  #5  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Use session variable in Insert record - 07-14-2008 , 10:12 PM



..oO(Ted Dawson)

Quote:
to select the user_id session variable! How is this done?

Use a hidden variable in the form, and assign it the value of the session.

And what if the user manipulates that value? Hidden form fields _always_
require a validation on the server. One purpose of a session is to avoid
that sensitive data is sent to the client, where it can be manipulated.


Exactly how is the value of a SESSION VARIABLE manipulated by the client?
It can be manipulated if it's put into a hidden form field.

Micha


Reply With Quote
  #6  
Old   
Ted Dawson
 
Posts: n/a

Default Re: Use session variable in Insert record - 07-14-2008 , 10:14 PM



Quote:
Exactly how is the value of a SESSION VARIABLE manipulated by the client?

It can be manipulated if it's put into a hidden form field.

You don't know what you're talking about.

I shouldn't have bothered. You'll drag me down to your level and beat me
with experience.



Reply With Quote
  #7  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Use session variable in Insert record - 07-14-2008 , 10:24 PM



..oO(Ted Dawson)

Quote:
Exactly how is the value of a SESSION VARIABLE manipulated by the client?

It can be manipulated if it's put into a hidden form field.


You don't know what you're talking about.
I'm always open for explanations and more detailed descriptions.

Micha


Reply With Quote
  #8  
Old   
geeturs
 
Posts: n/a

Default Re: Use session variable in Insert record - 07-15-2008 , 07:57 AM



Yes i would like more information on this too

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.