View Full Version : Passing Hidden Variables
08-06-2004, 03:54 AM
I set up a site with multiple users and each userID accesses an access database with their info. Currently I'm passing their userID by doing <a href="link.asp?user=<% userID %>">blah</a> Is there a better way to do this because as of right now, any user can just change that link location to view any other account info.
08-06-2004, 05:45 PM
Session variables can be used to store who's who so you don't have to pass the id in an easily changeable location. If your users are logged in using network IDs then that ID is also available from Request.ServerVariables("LOGON_USER").
08-06-2004, 05:58 PM
thanks, I used session("userID") and it worked perfectly
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.