FW:Session / Headers

From: Date: Wed, 07 Nov 2001 21:17:47 +0000
Subject: FW:Session / Headers
Groups: php.general 
Request: Send a blank email to php-general+get-73800@lists.php.net to get a copy of this message
Hello Richard, Yes, the session issue has been resolved. But thank you for your input. My biggest concern was preserving a session when I had a header re-direct. Basically, I had to manually tack on the session info like so: header("location: $referer?PHPSESSID=$PHPSESSID"); After that, everything worked smoothly. Thanks again! ahmad k. varoqua "Richard Howes" <richardh@workflowgroup.com> wrote on 11/7/01 8:47:50 AM: > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ><HTML><HEAD><TITLE id=ridTitle>Glacier</TITLE> ><META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> ><STYLE>BODY { > MARGIN-TOP: 20px; FONT-SIZE: 10pt; MARGIN-LEFT: 50px; COLOR: #006666; FONT-FAMILY: Arial, >Helvetica >} ></STYLE> > ><META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD> ><BODY id=ridBody background=cid:094244519@07112001-1a8a> ><DIV><SPAN class=094244519-07112001>Hi</SPAN></DIV> ><DIV><SPAN class=094244519-07112001></SPAN>&nbsp;</DIV> ><DIV><SPAN class=094244519-07112001>Is your issue solved >yet?</SPAN></DIV> ><DIV><SPAN class=094244519-07112001></SPAN>&nbsp;</DIV> ><DIV><SPAN class=094244519-07112001>To&nbsp;save a variable >$style&nbsp;on&nbsp;a page use:</SPAN></DIV> ><DIV><SPAN class=094244519-07112001></SPAN>&nbsp;</DIV> ><DIV><SPAN class=094244519-07112001>session >register(style);</SPAN></DIV> ><DIV><SPAN class=094244519-07112001></SPAN>&nbsp;</DIV> ><DIV><SPAN class=094244519-07112001>To "read" the variable on any page you >need >the same line;</SPAN></DIV> ><DIV><SPAN class=094244519-07112001></SPAN>&nbsp;</DIV> ><DIV><SPAN class=094244519-07112001> ><DIV><SPAN class=094244519-07112001>session >register(style);</SPAN></DIV> ><DIV><SPAN class=094244519-07112001></SPAN>&nbsp;</DIV> ><DIV><SPAN class=094244519-07112001>Remember that to register the variable you >use only the name (without the $).</SPAN></DIV> ><DIV><SPAN class=094244519-07112001></SPAN>&nbsp;</DIV> ><DIV><SPAN class=094244519-07112001>Regards,</SPAN></DIV> ><DIV><SPAN >class=094244519-07112001>&nbsp;</SPAN></DIV></SPAN></DIV> ><DIV><U><STRONG>Richard Howes</STRONG></U></DIV> ><DIV><STRONG><EM>WorkflowSolutions (Pty) >Ltd</EM></STRONG></DIV> ><DIV>&nbsp;</DIV> ><DIV>Cell:&nbsp;&nbsp;&nbsp; +27 (82) 784-0675</DIV> ><DIV>Fax:&nbsp;&nbsp;&nbsp; +27 (11) 476-7235</DIV> ><DIV>Email:&nbsp; <A >href="mailto:richardh@workflowgroup.com">richardh@workflowgroup.com</A></DIV> ><DIV>&nbsp;</DIV> ><DIV><FONT color=#ff0000><A >href="http://www.workflowgroup.com/">www.workflowgroup.com</A></FONT></DIV> ><P>&nbsp;</P></BODY></HTML>

« previous php.general (#73800) next »