hmmm... yes, I did think of that.
but I don't think it will work.
Because the page I am posting to is expecting the variables to be available in the $REQUEST array, not the $SESSION array.
I can't really go about modifying all my scripts to accomodate this. The solution I come up with has to be able to work with my scripts how they are. You must remember that I'm working with forms here, and normally the data will be posted from the form to the script defined in the action attribute.
So, on the case that the user session times out while they are working on the form, then I have to redirect to the login page, then redirect back to the script the form was originally posting to. It's up to my Login script to handle posting data along to the intended script.
I'm just having a hard time thinking how I can do it.
If it comes to it I'll just leave it using the query string to pass the data along. That approach does work, just I know there is a limit on how much data you can place in the query string.
... not really sure what that limit is though. anyone know? The forms I'm using have 70 fields. So, yeah, I'm expecting it to go over the limit whatever that is.
thanks for your reply though,
-Adam 🙂