bcatt
07-20-2008, 05:05 PM
Sorry if this has been covered (seems it must have been, but I can't find anything that helps me figure this out after 2 days of searching).
I want to use $_POST to send session IDs for users that don't have cookies. But I want to figure out if they have cookies first. So my plan is to detect if they are a new visitor, and if so, set a cookie & the POST data (SID), then refresh & check for the cookie, if there is no cookie, then their session can be passed from page to page by using links which use a form with invisible fields. I think I have most of it figured out, but I can't figure out how to send the initial POST data (on the refresh).
One thing I have read in a few blogs and forums is using a temporary redirect using header(), but I think I also read something a while back about how this can cause problems with search engines. Also, none of the people who mentioned using the header() redirect really said how to attach the POST data to the redirect url.
So, is there a way to manually send POST data when refreshing the page?
Thanks in advance for any help with this.
I want to use $_POST to send session IDs for users that don't have cookies. But I want to figure out if they have cookies first. So my plan is to detect if they are a new visitor, and if so, set a cookie & the POST data (SID), then refresh & check for the cookie, if there is no cookie, then their session can be passed from page to page by using links which use a form with invisible fields. I think I have most of it figured out, but I can't figure out how to send the initial POST data (on the refresh).
One thing I have read in a few blogs and forums is using a temporary redirect using header(), but I think I also read something a while back about how this can cause problems with search engines. Also, none of the people who mentioned using the header() redirect really said how to attach the POST data to the redirect url.
So, is there a way to manually send POST data when refreshing the page?
Thanks in advance for any help with this.