ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 4th, 2003, 10:00 PM
amateurASP amateurASP is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 81 amateurASP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 16 m 28 sec
Reputation Power: 5
Limiting data access based on who logs in

Ok, I have 40 different users. Each user manages a subset of the total database. Currently I have a pull-down menu to let the user select their subset and then manage the data within it. I'd like to use their login info to pre-select the subset so that they have access only to their assigned areas. How do I "send" the subset name from one asp page to another?

the db is "2004" the table is "Students"

As a rank amateur, specificity is appreciated

Reply With Quote
  #2  
Old October 5th, 2003, 01:07 PM
aaron.martone's Avatar
aaron.martone aaron.martone is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Central Florida
Posts: 76 aaron.martone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via ICQ to aaron.martone
I've always assigned a session variable along with the user (actually it was part of the user's logged in info) Like this on a successful login:

Session("userLoggedIn") = "Chuck"
Session("areaAccessTo") = "02,33,42"

Then, each page, depending on the kind of data it deals with (ie, section 02), would use InStr to check if it finds that string in their areaAccessTo variable. If not; they dont have access.

Reply With Quote
  #3  
Old October 5th, 2003, 03:58 PM
amateurASP amateurASP is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 81 amateurASP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 16 m 28 sec
Reputation Power: 5
Ok, lets say I have one database with fields named Club, Name, e-mail, phone.

Based on a log in I want to limit access to the information for the club they are a member of.

Will your suggestion work in this case ?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Limiting data access based on who logs in


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway