Click here to Skip to main content
15,169,508 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
Questiontrying to write a cookie Pin
MacRaider418-Feb-11 10:16
MemberMacRaider418-Feb-11 10:16 
AnswerRe: trying to write a cookie Pin
Peter_in_278018-Feb-11 11:30
professionalPeter_in_278018-Feb-11 11:30 
GeneralRe: trying to write a cookie Pin
MacRaider419-Feb-11 2:46
MemberMacRaider419-Feb-11 2:46 
AnswerRe: trying to write a cookie Pin
Peter_in_278023-Feb-11 13:34
professionalPeter_in_278023-Feb-11 13:34 
GeneralRe: trying to write a cookie Pin
Al4224-Feb-11 5:48
MemberAl4224-Feb-11 5:48 
AnswerRe: trying to write a cookie Pin
Luc Pattyn24-Feb-11 6:24
sitebuilderLuc Pattyn24-Feb-11 6:24 
GeneralRe: trying to write a cookie Pin
MacRaider422-Mar-11 6:26
MemberMacRaider422-Mar-11 6:26 
AnswerRe: trying to write a cookie Pin
Tony Wright (UK)24-Feb-11 3:39
MemberTony Wright (UK)24-Feb-11 3:39 
We use the following to store the users ID when they logon...

setcookie("UID", $_REQUEST['cuser'], time()+2592000, "/");

...this allows us to remember a users ID, BUT it is only available after the page is reloaded. So after the above line you could add...

header("Location: $http_url");

You could then check to see if it has been set.

...or you could push the value into the Session as well...

$_SESSION['UID'] = $_REQUEST['cuser'];


Hope this helps.
Questionwhy i cound't access apple's server with php curl Pin
wjun1976121918-Feb-11 6:10
Memberwjun1976121918-Feb-11 6:10 
AnswerRe: why i cound't access apple's server with php curl Pin
Tom Chantler23-Feb-11 22:21
professionalTom Chantler23-Feb-11 22:21 
QuestionData normalization Pin
Mutugi from Nairobi14-Feb-11 21:14
MemberMutugi from Nairobi14-Feb-11 21:14 
AnswerRe: Data normalization Pin
Eddy Vluggen19-Feb-11 4:04
professionalEddy Vluggen19-Feb-11 4:04 
QuestionGetting google photo result by php Pin
ty-exexch-ko10-Feb-11 10:31
Memberty-exexch-ko10-Feb-11 10:31 
Questionmysql_query error Pin
komanche7-Feb-11 23:31
Memberkomanche7-Feb-11 23:31 
AnswerRe: mysql_query error Pin
Gerben Jongerius8-Feb-11 4:13
MemberGerben Jongerius8-Feb-11 4:13 
Questiondisplay query result in a table using PHP Pin
PermissionDenied6-Feb-11 21:10
MemberPermissionDenied6-Feb-11 21:10 
AnswerRe: display query result in a table using PHP Pin
Jules VDV9-Feb-11 5:56
MemberJules VDV9-Feb-11 5:56 
AnswerRe: display query result in a table using PHP Pin
Al4211-Feb-11 13:02
MemberAl4211-Feb-11 13:02 
Questionmake tab&menu Pin
Elham M5-Feb-11 6:59
MemberElham M5-Feb-11 6:59 
AnswerRe: make tab&menu Pin
Eddy Vluggen19-Feb-11 4:05
professionalEddy Vluggen19-Feb-11 4:05 
QuestionProblem with PHP - FastCGI - Headers Pin
Lea Hayes4-Feb-11 14:51
MemberLea Hayes4-Feb-11 14:51 
AnswerRe: Problem with PHP - FastCGI - Headers Pin
Peter_in_27804-Feb-11 15:25
professionalPeter_in_27804-Feb-11 15:25 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Lea Hayes5-Feb-11 4:30
MemberLea Hayes5-Feb-11 4:30 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Peter_in_27806-Feb-11 14:40
professionalPeter_in_27806-Feb-11 14:40 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Lea Hayes7-Feb-11 1:26
MemberLea Hayes7-Feb-11 1:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.