cgosbee
Posts: 23
|
| Posted: 10/31/2007, 12:14 PM |
|
I have a solution with the following requirement/issues:
The entire site has a drop-down menu in the header. (works very nicely)
All pages require log-in, and redirect to the log-in if you aren't signed in. (also working)
What I need to do now is, immediately after log-in, have a page in which the user makes a selection, which is "saved", and all subsequent pages the user jumps to - whether through links on pages or through the drop-down menus - must have access to that selection, and have it used as part of the page's selection criteria. If a user jumps to a page and that selection hasn't been made, it should redirect the user back to the selection page.
I'm working in PHP.
Any advice anyone can provide on the "best" way to handle this would be appreciated. I can't quite see my way through this just now.
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 10/31/2007, 6:52 PM |
|
cgosbee
Here is one suggestion. You could just have a include page of a method/function (prior to page being rendered to user) that redirects the user if certain criteria are not meet by the user's session.
Here is another suggestion (More tedious and not good programming). You could put code in the Event Before Show for each page that will redirect the user if certain criteria are not meet.
Hopefully these suggestions will point you in the right direction.
|
 |
 |
|