PDA

View Full Version : Use subscriber ID as filter in results pages?


glmcps295424
04-03-2009, 05:08 AM
Creating site where paying subscribers will have access to files filtered by an ID. Do I use the subscribers ID or a session variable?

Subscriber login goes to it's successful redirect page. This page has it's own menu that links to all files that subscriber needs access to.


How do I create a variable to use as a filter in the results pages based on whom is logged in?

Thanks for your time.

Gregg

Ray Borduin
04-03-2009, 07:37 AM
Use SecurityAssist to do the login. It will allow you to store a session variable at login that is the subscribers ID and then you can use that to filter recordsets to create the user experience you are trying to accomplish.

glmcps295424
04-03-2009, 10:51 AM
Ray,

I started a new site . Used Site Assist Pro, Security Assist, Data assist.

Login works and redirects correctly

in the login page action is set to POST. there's a SA Authenticate User server behavior,

No recordset in login.

The session variable is not getting set.

Suggestion?

Gregg

Ray Borduin
04-03-2009, 12:07 PM
How do you know it isn't set? What session variable?

Is it possible you just don't have a session_start() on the page where you are trying to use it?

glmcps295424
04-03-2009, 01:26 PM
"Is it possible you just don't have a session_start() on the page where you are trying to use it? "

YUP Real possible!

Sorry to bother you.

Regards,

Gregg