Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Matt Greer

on 9/24/01 10:56 AM, Thomas Deliduka at [EMAIL PROTECTED] wrote:

 FORM ACTION=index2.php METHOD=POST
 VAR 3: INPUT TYPE=TEXT VALUE=My Var 3 NAME=myvar3 INPUT TYPE=SUBMIT
 VALUE=goBR
 /FORM
 
I dont see where the SID is being passed to the next page. I recently
struggled through getting sessions to work, and for me I had to send SID
myself manually, the server wouldn't send it via a cookie.


I have mine set up a little differently, something like



//index.php
?php
session_register(var1);
session_register(var2);
$var1 = the session...;
$var2 = worked;
?
html
body
a href=index2.php??=SID?Go to page two/a
/body
/html

//index2.php
?php
session_start();

echo var1 is $var1 and var2 is $var2;

session_destroy();
?

---

You can also send the SID in a form via
form method=post action=nextpage.php??=SID?


I use the constant SID and the shorthand ?=SID? because that is what is
recommended and demonstrated on php.net

Matt


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 12:02 PM this was written:

 Dont use sessions, they are a little flaky anyway.  Use a mixture of holding
 data in database and passing sid/userid/hash around on the URL.  You wont
 regret
 it.

That's what I do. Except I want to install:

http://www.phplinks.org/

Which requires them.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Thomas Deliduka

I see I'm relying on cookies in my code. Lemme see if I can pass it.

On 9/24/2001 12:04 PM this was written:

 I had the exact same problem.. don't know if you had this advice yet or not
 but what I did is when I started a session I would grab the session id for
 that session and put it in a variable and then just pass that session id
 everywhere I went.. turn on the trans_id or add the session id to the end of
 every link so it gets pass throughout all the links/forms you have on the
 site.
 
 start_session();
 $SID = session_id();
 
 That's what I do and then I just pass the $SID on all the links and forms
 and it works for me.
 
 Hope that helps or is at least something new for you to try.

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Thomas Deliduka

I see I'm relying on cookies in my code. Lemme see if I can pass it. Thanks.

On 9/24/2001 12:11 PM this was written:

 I dont see where the SID is being passed to the next page. I recently
 struggled through getting sessions to work, and for me I had to send SID
 myself manually, the server wouldn't send it via a cookie.
 
 
 I have mine set up a little differently, something like
 
 
 
 //index.php
 ?php
 session_register(var1);
 session_register(var2);
 $var1 = the session...;
 $var2 = worked;
 ?
 html
 body
 a href=index2.php??=SID?Go to page two/a
 /body
 /html
 
 //index2.php
 ?php
 session_start();
 
 echo var1 is $var1 and var2 is $var2;
 
 session_destroy();
 ?
 
 ---
 
 You can also send the SID in a form via
 form method=post action=nextpage.php??=SID?
 
 
 I use the constant SID and the shorthand ?=SID? because that is what is
 recommended and demonstrated on php.net

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 12:22 PM this was written:

 Try to use constant SID, maybe that will work, and it is more likely
 that it will work on other intallations with other session variable
 names.

I just tried using SID in my index.php and there is nothing that displays.
Hmmm.
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Thomas Deliduka

On 9/24/2001 12:28 PM this was written:

 On Monday 24 September 2001 18:20, Thomas Deliduka wrote:
 On 9/24/2001 12:22 PM this was written:
 Try to use constant SID, maybe that will work, and it is more
 likely that it will work on other intallations with other session
 variable names.
 
 I just tried using SID in my index.php and there is nothing that
 displays. Hmmm.
 The try this link almost works for me. You just forget the ? sign
 before the SID.

I guess I did. But hey.

On internet Explorer for the PC I get the proper 'try this link' value. Not
to mention that I get a warning above that PHPSESSID doesn't exist.

But on IE for the Mac PHPSESSID above prints out fine but the 'try this
link' HREF has not PHPSESSID. I used ?=SID? to echo it and it doesn't show
up.

What is up with that?! is this platform specific?!
-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Thomas Deliduka

After reloading IE on the PC now the SID constant doesn't echo anything at
all.

On 9/24/2001 12:28 PM this was written:

 On 9/24/2001 12:28 PM this was written:
 
 On Monday 24 September 2001 18:20, Thomas Deliduka wrote:
 On 9/24/2001 12:22 PM this was written:
 Try to use constant SID, maybe that will work, and it is more
 likely that it will work on other intallations with other session
 variable names.
 
 I just tried using SID in my index.php and there is nothing that
 displays. Hmmm.
 The try this link almost works for me. You just forget the ? sign
 before the SID.
 
 I guess I did. But hey.
 
 On internet Explorer for the PC I get the proper 'try this link' value. Not to
 mention that I get a warning above that PHPSESSID doesn't exist.
 
 But on IE for the Mac PHPSESSID above prints out fine but the 'try this link'
 HREF has not PHPSESSID. I used ?=SID? to echo it and it doesn't show up.
 
 What is up with that?! is this platform specific?!

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]