Thread: php question
View Single Post
  #1 (permalink)  
Old 05-14-2005, 12:24 PM
crowebird crowebird is offline
Senior Member
0 posts this year. needs some grease!
New user, who has not interacted much yet.
 
Join Date: Aug 2004
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default php question

when I use setCookie in an php include, where the file is (for example)
thesite.com/folder/files/setcookie.php
and the include is in folder thesite.com/folder/execute.php

and this information is called from thesite.com/page2.php as a login page
are the cookies set properly? when I set cookies like that then try to access them, they seem to not exists, am I doing somthing wrong? When i put the set cookie file on the root folder (thesite.com/setcookie.php) and have it executed there, then try to access the cookie it appears, but it requires me to use GET (thesitecom/setcookie?session=sss&user_name=example);
which allows the user to see what took place...

so if there is another way to set cookies like I want to can you tell me or how can I use POST by using meta redirect or php header("Location: thesite.com/page2.php");
Reply With Quote