CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 IDENTITY value in QueryString

Print topic Send  topic

Author Message
alexands

Posts: 11
Posted: 12/09/2006, 7:39 AM

Can anyone give me some ideas about how to stop using IDENTITY values in querystrings to link to records? My app is multi user and if a person can read a document ID in the query string, they can just change it to see others information. I thought of using GUID as a primary key but have been told that's not such a good idea.

How would I use Session variables for this? How can I set a session variable by clicing on a HREF?

I hope this makes sense.

Thanks
View profile  Send private message
E43509

Posts: 283
Posted: 12/09/2006, 8:16 AM

First thought would be to change from a http GET to a HTTP POST. The GET puts stuff in the URL. The post puts it in the headers.
Second thought is along the same lines as you related. Set a session variable. Clicking on a HREF would be tough to create a session variable as that is created on the server side and you need to submit back to the server
View profile  Send private message
rbaldwin

Posts: 172
Posted: 12/13/2006, 4:43 PM

another option would be to obfuscate the IDENTITY value and deobfuscate when you get the the destination page in the before show event
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.