Session variables lost
Following is my scenario:
1. User logs in and user id is stored in a session variable.
2. User is then directed to a Web Form Builder form with upload capability and data is saved to csv file.
3. Control is then passed to my custom php program using the 'Redirect to another URL' feature on the Confirm Options tab of the form settings.
Redirect to URL: http://mysite.com/app/mycode.php
4. The custom program 'mycode' then parses the csv data and updates SQL database.
Everything works except the session variable containing the user id is now Null. I need the user id to update the database. I would also like to keep the user 'logged in' so they can upload additional files if needed.
I am trying to accomplish this without modifying any of the Form Builder code. thoughts?
1. User logs in and user id is stored in a session variable.
2. User is then directed to a Web Form Builder form with upload capability and data is saved to csv file.
3. Control is then passed to my custom php program using the 'Redirect to another URL' feature on the Confirm Options tab of the form settings.
Redirect to URL: http://mysite.com/app/mycode.php
4. The custom program 'mycode' then parses the csv data and updates SQL database.
Everything works except the session variable containing the user id is now Null. I need the user id to update the database. I would also like to keep the user 'logged in' so they can upload additional files if needed.
I am trying to accomplish this without modifying any of the Form Builder code. thoughts?
I can't give you any "explicit instructions" here as most of what you're trying to do is above my head, but....
I can tell you that you cannot do what you're trying to do without tying the code from the Form Builder to your Login and Sessions system as the Form Builder has nothing to do with either of them. There is nothing in the Form Builder for sessions nor for login. It's just a form that gathers information ... unless you code it otherwise to do different.
So one answer to your post is, you cannot do what you're wanting to do without modifying the Form Builder code. What you need to do though I'll wait on Eric or someone to chime in as that part is beyond my knowledge at this point. Good luck on it either way, and I do hope you find a way to do it as it would make sense.
I can tell you that you cannot do what you're trying to do without tying the code from the Form Builder to your Login and Sessions system as the Form Builder has nothing to do with either of them. There is nothing in the Form Builder for sessions nor for login. It's just a form that gathers information ... unless you code it otherwise to do different.
So one answer to your post is, you cannot do what you're wanting to do without modifying the Form Builder code. What you need to do though I'll wait on Eric or someone to chime in as that part is beyond my knowledge at this point. Good luck on it either way, and I do hope you find a way to do it as it would make sense.
The form builder uses sessions to display form results. Are you using the built in redirect option for your form?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Yes, I am using the redirect option on the form.
I'm pretty sure CC unsets the session variables on the redirect. The best way around this that I have found was to use my own myformname.php to do all the processing of the data. You could hack the forms own files but then every time you redo the form you would have to replace those alterations.

I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Thanks for the quick response. I was trying to avoid modifying myformname.php since CC does all of the work uploading.
I think your on your own as there's so many different setups when it comes to the needs in a php script dealing with uploads. I wish I could tell you to go to this spot and do this and that but there's to many things that would have to be tested to make sure they work correctly.
Sorry.
The session variables are available. See this thread.
http://www.coffeecup.com/forums/web-for … post240036

Sorry.

The session variables are available. See this thread.
http://www.coffeecup.com/forums/web-for … post240036
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.