[PHP] Sessions Sessions. Lovely Sessions.

2002-10-26 Thread Mohamed S.
Ok.

I've had to wrestle with some peculiar issues with my sessions...

1) If at any point, I give my session a name different than the default
using session_name('XYZ'), my session won't be created. Is there a limit to
the number of characters a session name can have? Capitalization? ANYTHING?

2) If at any point, I use the funcion session_set_cookie_params(), my cookie
does not set! This is becoming frustrating...

using php4.2.3 on apache1.3.26 on a FreeBSD machine.
php.ini is the default.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Unique yet Eerie

2003-09-01 Thread Mohamed S.
I'm have a strange problem. I've encoutered a few before, but nothing like
this:

New machine with php4.2.2 on RedHat with Apache2.0

All my forms use POST method. But I noticed that some scripts when i submit
the form, i get wierd data.

For example:
say i have 

then what i will get for $example is the string "valexample=val" instead of
just "val"!!! even the $_POST[example] variable gives the same thing...

magic quotes and globals are ON.

If i put it to GET, then it works fine. But i don't want to put GET!
Especially that you can't use get for file uploads.

Also, i think this is screwing up my uploads! I uploaded a text file and saw
that it inserted a bunch of text right in the middleof the file!!

Something like:
-7d3323a150580
Content-Disposition: form-data; name="userfile"; filename="C:\Documents and
Settings\file.txt"
Content-Type: text/plain


So something is causing my php to insert the name of the variable and other
stuff into the variable itself..ANY IDEAS?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php