[PHP] session handling

2006-03-09 Thread suresh kumar
i am having one problem in session handling.
I am having 2 files,login page and hame page.
when user enterd user name and password in login page
.i used session to store the user id .in my second
home page.i retrieve the user id.now i want the user
id to be availble in my thrid page.plz help me.this is
my code.

login.php
session_start();
$ID=$userid;
session_register(ID);

homepage.php
session_start():
echo $ID   //this is working fine



thirdpage.php
  session_start();
  echo $ID //not working



i am looking reply from u

   



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



Re: [PHP] session handling

2006-03-09 Thread tedd

i am having one problem in session handling.
I am having 2 files,login page and hame page.
when user enterd user name and password in login page
.i used session to store the user id .in my second
home page.i retrieve the user id.now i want the user
id to be availble in my thrid page.plz help me.this is
my code.

login.php
session_start();
$ID=$userid;
session_register(ID);

homepage.php
session_start():
echo $ID   //this is working fine



thirdpage.php
  session_start();
  echo $ID //not working


i am looking reply from u




Try:  session_register(ID);

tedd
--

http://sperling.com

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



Re: [PHP] session handling

2006-03-09 Thread Gerry Danen
$ID is not a global, but $_SESSION[ID] would be...

Gerry
http://groups.yahoo.com/group/php_and_mysql/

On 3/9/06, suresh kumar [EMAIL PROTECTED] wrote:

 i am having one problem in session handling.
 I am having 2 files,login page and hame page.
 when user enterd user name and password in login page
 .i used session to store the user id .in my second
 home page.i retrieve the user id.now i want the user
 id to be availble in my thrid page.plz help me.this is
 my code.

 login.php
 session_start();
 $ID=$userid;
 session_register(ID);

 homepage.php
 session_start():
 echo $ID   //this is working fine



 thirdpage.php
   session_start();
   echo $ID //not working



[PHP] session handling

2005-05-23 Thread eswar
Dear sir
I am the php programmer. I am trying with session handling.It is not working 
properly. sessions function well when I use browser on the machine where IIS is 
installed. But through other machines, it always create two session file, one 
is OK, the other is blank, nothing in it. the later is used by the session. So 
all the thing I registered for the session can not be accessed later. need help

please help me in this situation.


with regards
Eswaramoorthy
[EMAIL PROTECTED]

Re: [PHP] session handling

2005-05-23 Thread Richard Lynch
On Sun, May 22, 2005 11:09 pm, eswar said:
 I am the php programmer. I am trying with session handling.It is not
 working properly. sessions function well when I use browser on the machine
 where IIS is installed. But through other machines, it always create two
 session file, one is OK, the other is blank, nothing in it. the later is
 used by the session. So all the thing I registered for the session can not
 be accessed later. need help

Errr.  It works for a few million people.

Could you show us the first 5 lines of code that you are using that
mention sessions?

It should start with:
?php session_start();?

If it doesn't start with that, there is your first problem.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] Session Handling

2004-11-08 Thread Vinayakam Murugan
Hello

Can anyone point me a good tutorial for session handling in PHP? I
want answers to questions like

1) What's the difference between session  cookies?
2) What does session_destroy do? (I know the definition from
www.php.net) I want to know the internals.

Thanks in advance.

-- 
Warm Regards

Vinayak

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



Re: [PHP] Session Handling

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 15:00:33 +0530, Vinayakam Murugan
[EMAIL PROTECTED] wrote:
 Can anyone point me a good tutorial for session handling in PHP? I
 want answers to questions like

 ./google.pl php session 10
Result:
http://www.php.net/session
http://www.phpfreaks.com/tutorials/41/0.php
http://www.webkreator.com/php/configuration/php-session-security.html
http://www.sitepoint.com/blog-post-view.php?id=156260
http://www.sitepoint.com/article/users-php-sessions-mysql
http://martin.f2o.org/php/session
http://www.onlamp.com/pub/a/php/excerpt/webdbapps_8/
http://www.zend.com/manual/ref.session.php
http://www.easysoft.com/tech/php/tut_001/main.phtml
http://shiflett.org/talks/phpworks2004/php-session-security


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



[PHP] session handling works on local server, but not when uploaded to ISP

2003-06-28 Thread anders thoresson
Hi,

I've a login script that works fine on my local server, but when I runs it 
from my ISP I get the following error:

Warning: Cannot send session cookie - headers already sent by (output 
started at /export/home/thore/public_html/phptest/reporter_view.php:5) in 
/include/accesscontrol.php on line 9

Warning: Cannot send session cache limiter - headers already sent (output 
started at /export/home/thore/public_html/phptest/reporter_view.php:5) in 
/include/accesscontrol.php on line 9

If I had made any mistake in my handling with the session functions, 
shouldn't that be the case also at my local server?

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


[PHP] session handling

2002-11-15 Thread Anjali Kaur
i want to access some variables generated in one page
in all the other pages, so i thought of using
$_SESSION.

what i did is :

in page1.php i do: 

   $temp = 'someValue';
   session_start();
   $_SESSION['abc'] = $temp;


in page2.php :

session_start();
echo($_SESSION['abc']);


but i am not able to get the value of abc.

please help me out. i went thru the documentation
online but cudnt grasp much as to where i am going
wrong.

thank you.
anjali.


__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

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




Re: [PHP] session handling

2002-11-15 Thread Justin French
Have you got cookies enabled in your browser?
Check if PHP is setting the cookie in your browser -- it should be named
PHPSESSID by default, but might be named something else...

If you haven't got cookies enabled on your browser, then you have to pass
the session id around in the URL, linking page 1 to page 2.


Justin


on 16/11/02 12:36 PM, Anjali Kaur ([EMAIL PROTECTED]) wrote:

 i want to access some variables generated in one page
 in all the other pages, so i thought of using
 $_SESSION.
 
 what i did is :
 
 in page1.php i do:
 
 $temp = 'someValue';
 session_start();
 $_SESSION['abc'] = $temp;
 
 
 in page2.php :
 
 session_start();
 echo($_SESSION['abc']);
 
 
 but i am not able to get the value of abc.
 
 please help me out. i went thru the documentation
 online but cudnt grasp much as to where i am going
 wrong.
 
 thank you.
 anjali.
 
 
 __
 Do you Yahoo!?
 Yahoo! Web Hosting - Let the expert host your site
 http://webhosting.yahoo.com

Justin French

http://Indent.com.au
Web Developent  
Graphic Design



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




[PHP] Session Handling

2002-11-06 Thread Uma Shankari T.


Hello,

  I have tried session handling..after starting the session i am trying to 
get the value by this command

 session_start();
 echo $varname;

but it is displaying this error..

Warning: Cannot send session cookie - headers already sent by (output 
started 

Can anyone tell me how to go about with this ??


Regards,
Uma


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




RE: [PHP] Session Handling

2002-11-06 Thread John W. Holmes
You must call session_start before any output to the browser. A blank
line or space outside of PHP blocks is considered output. The error
message tells you exactly where the output started. Read the manual for
more information, it's all covered.

---John Holmes...

 -Original Message-
 From: Uma Shankari T. [mailto:umashankari;lantana.tenet.res.in]
 Sent: Wednesday, November 06, 2002 6:59 AM
 To: PHP
 Subject: [PHP] Session Handling
 
 
 
 Hello,
 
   I have tried session handling..after starting the session i am
trying to
 get the value by this command
 
  session_start();
  echo $varname;
 
 but it is displaying this error..
 
 Warning: Cannot send session cookie - headers already sent by (output
 started
 
 Can anyone tell me how to go about with this ??
 
 
 Regards,
 Uma
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




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




RE: [PHP] Session Handling

2002-11-06 Thread Uma Shankari T.

On Wed, 6 Nov 2002, John W. Holmes wrote:

JWHYou must call session_start before any output to the browser. A blank
JWHline or space outside of PHP blocks is considered output. The error
JWHmessage tells you exactly where the output started. Read the manual for
JWHmore information, it's all covered.

Hello,

  Actually i have started some javascript where its pointing as 
error..other than that i didn;t leave any line space..Can any one please 
tell me how to do this..

Regards
Uma


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




RE: [PHP] Session Handling

2002-11-06 Thread John W. Holmes
 JWHYou must call session_start before any output to the browser. A
blank
 JWHline or space outside of PHP blocks is considered output. The
error
 JWHmessage tells you exactly where the output started. Read the
manual
 for
 JWHmore information, it's all covered.
 
 Hello,
 
   Actually i have started some javascript where its pointing as
 error..other than that i didn;t leave any line space..Can any one
please
 tell me how to do this..
 
 Regards
 Uma

Okay anything outside of the ? And ? php tags is considered output
to the browser. Session_start must be before all of this. 

In other words, you file should start like this:

?
session_start();

//other PHP stuff
?
html
...

---John Holmes...



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




[PHP] Session handling

2002-11-05 Thread Uma Shankari T.


Hello,

   I am having two list box of which one contains the year no and the 
another one contains the items related to that year..If once i have 
selected that year then whatever i have selected in the list it have to 
show the items related to that year until i select the next year..Can 
anyone please tell me how to do this with sessions..??


Regards,
Uma


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




RE: [PHP] Session handling

2002-11-05 Thread John W. Holmes
I am having two list box of which one contains the year no and the
 another one contains the items related to that year..If once i have
 selected that year then whatever i have selected in the list it have
to
 show the items related to that year until i select the next year..Can
 anyone please tell me how to do this with sessions..??

SESSIONs have nothing to do with it, this is a javascript issue, unless
you plan on submitting the form when the user picks the year.

---John Holmes...



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




RE: [PHP] Session handling

2002-11-05 Thread Uma Shankari T.




JWHSESSIONs have nothing to do with it, this is a javascript issue, unless
JWHyou plan on submitting the form when the user picks the year.


Okay if it is like form submittion Can you please tell me how to do 
that..??

Regards,
Uma



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




RE: [PHP] Session handling

2002-11-05 Thread John W. Holmes
 JWHSESSIONs have nothing to do with it, this is a javascript issue,
 unless
 JWHyou plan on submitting the form when the user picks the year.
 
 
 Okay if it is like form submittion Can you please tell me how to do
 that..??

What do you have so far? I'm not writing this for you, it's a simple
HTML form. You provide a drop down for the year, the user chooses a year
and hits Go. You then use the value they chose in the query or whatever
to create the second dropdown. 

---John Holmes...



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




[PHP] php session handling in Apache on Windows 2000

2002-04-03 Thread Lee, Ford

I've installed Apache 1.3.23 on Windows 2000 and PHP 4.1.2 on it. I
can't seem to get any session variables set using any of
$_SESSION/$HTTP_SESSION_VARS/session_register() methods to work. My temp
file is valid and track_vars is turned on. I can see that in the temp
folder my session vars are stored in files but nothing is being written
to it. Therefore, my session vars don't get carried across state.
Anybody who came across this and solved it? If you can let me know, that
would be greatly appreciated. thank you.



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




Re: [PHP] Session handling with cookies??

2001-10-30 Thread Jason G.

Set the expire date to be 0.  then the browser will delete them after the 
browser window is closed.

-Jason Garber
IonZoft.com

At 02:39 PM 10/29/2001 +0100, Andy wrote:
Hello,

I have developed a member login system with cookies. Now I have the prob,
that the session stayes existend when the browser is closed. This could
couse a problem in Internet caffes for example. As second thing, I have
realized, that it depends on the clients clock!! I am sending a cookie which
expires in time() + $expireseconds. Unfortunatelly the time command takes
the tim from the server and the cookie expires checking the client time.

So... does anybody know how...

1) I get the system to delete the cookie as soon as I leave the site, or
close it
2) How to work on the same time.

Thanx for any help


Cheers Andy



--
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]


-- 
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]




[PHP] Session handling with cookies??

2001-10-29 Thread Andy

Hello,

I have developed a member login system with cookies. Now I have the prob,
that the session stayes existend when the browser is closed. This could
couse a problem in Internet caffes for example. As second thing, I have
realized, that it depends on the clients clock!! I am sending a cookie which
expires in time() + $expireseconds. Unfortunatelly the time command takes
the tim from the server and the cookie expires checking the client time.

So... does anybody know how...

1) I get the system to delete the cookie as soon as I leave the site, or
close it
2) How to work on the same time.

Thanx for any help


Cheers Andy



-- 
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] Session handling with cookies??

2001-10-29 Thread Olexandr Vynnychenko

Hello Andy,

Monday, October 29, 2001, 3:39:51 PM, you wrote:

A So... does anybody know how...

A 1) I get the system to delete the cookie as soon as I leave the site, or
A close it

Use logout with setcookie(name, 0, ...)

A 2) How to work on the same time.

Pass information about date/time via GET or better POST variable(s).



-- 
Best regards,
 Olexandrmailto:[EMAIL PROTECTED]



-- 
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]




[PHP] session handling

2001-03-28 Thread \[Inf\] F!RE-WALL

Every time I want to initiate a session i get this:

Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed: m
(2) in e:\webserver\phptest\page1.php on line 2

Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0

I run an Apache webserver under Windows and I have the latest version of
PHP. I looked up the "session.save_path" in the php.ini file and it sais:

[Session]
session.save_handler  = files   ; handler used to store/retrieve data
session.save_path = /tmp; argument passed to save_handler
; in the case of files, this is the
; path where data files are stored
session.use_cookies   = 1   ; whether to use cookies
session.name  = PHPSESSID
; name of the session
; is used as cookie name
session.auto_start= 0   ; initialize session on request startup
session.cookie_lifetime   = 1814400   ; lifetime in seconds of cookie
; or if 0, until browser is restarted
session.cookie_path   = /   ; the path the cookie is valid for
session.cookie_domain = ; the domain the cookie is valid for
session.serialize_handler = php ; handler used to serialize data
; php is the standard serializer of PHP
session.gc_probability= 1   ; percentual probability that the
; 'garbage collection' process is
started
; on every session initialization
session.gc_maxlifetime= 1440; after this number of seconds, stored
; data will be seen as 'garbage' and
; cleaned up by the gc process
session.referer_check = ; check HTTP Referer to invalidate
; externally stored URLs containing ids
session.entropy_length= 0   ; how many bytes to read from the file
session.entropy_file  = ; specified here to create the session
id
; session.entropy_length= 16
; session.entropy_file  = /dev/urandom
session.cache_limiter = nocache ; set to {nocache,private,public} to
; determine HTTP caching aspects
session.cache_expire  = 180 ; document expires after n minutes
session.use_trans_sid = 1   ; use transient sid support if enabled
; by compiling with --enable-trans-sid
url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=fakeentry"

What's wrong with /tmp ? Where's that map located? Do I need to change the
entry? Should I create the dir? If so, where?



-- 
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] session handling

2001-03-28 Thread Andrius Lokotash

if you use windows then paht myst be c:\tmp or somthing like that.

the difference between unix  windows systems are directory adressing
symbols, unix uses / windows on the oder hand \, fix this in php.ini and
it will work

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf
Of [Inf] F!RE-WALL
Sent: Wednesday, March 28, 2001 12:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] session handling


Every time I want to initiate a session i get this:

Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR)
failed: m
(2) in e:\webserver\phptest\page1.php on line 2

Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR)
failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on
line 0

I run an Apache webserver under Windows and I have the latest version of
PHP. I looked up the "session.save_path" in the php.ini file and it
sais:

[Session]
session.save_handler  = files   ; handler used to store/retrieve
data
session.save_path = /tmp; argument passed to save_handler
; in the case of files, this is the
; path where data files are stored
session.use_cookies   = 1   ; whether to use cookies
session.name  = PHPSESSID
; name of the session
; is used as cookie name
session.auto_start= 0   ; initialize session on request
startup
session.cookie_lifetime   = 1814400   ; lifetime in seconds of
cookie
; or if 0, until browser is
restarted
session.cookie_path   = /   ; the path the cookie is valid for
session.cookie_domain = ; the domain the cookie is valid for
session.serialize_handler = php ; handler used to serialize data
; php is the standard serializer of
PHP
session.gc_probability= 1   ; percentual probability that the
; 'garbage collection' process is
started
; on every session initialization
session.gc_maxlifetime= 1440; after this number of seconds,
stored
; data will be seen as 'garbage' and
; cleaned up by the gc process
session.referer_check = ; check HTTP Referer to invalidate
; externally stored URLs containing
ids
session.entropy_length= 0   ; how many bytes to read from the
file
session.entropy_file  = ; specified here to create the
session
id
; session.entropy_length= 16
; session.entropy_file  = /dev/urandom
session.cache_limiter = nocache ; set to {nocache,private,public} to
; determine HTTP caching aspects
session.cache_expire  = 180 ; document expires after n minutes
session.use_trans_sid = 1   ; use transient sid support if
enabled
; by compiling with
--enable-trans-sid
url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=fakeentry"

What's wrong with /tmp ? Where's that map located? Do I need to change
the
entry? Should I create the dir? If so, where?



-- 
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]

--
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] session handling

2001-03-28 Thread \[Inf\] F!RE-WALL

thanx m8
IT WORKS

""Andrius Lokotash"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
if you use windows then paht myst be c:\tmp or somthing like that.

the difference between unix  windows systems are directory adressing
symbols, unix uses / windows on the oder hand \, fix this in php.ini and
it will work

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf
Of [Inf] F!RE-WALL
Sent: Wednesday, March 28, 2001 12:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] session handling


Every time I want to initiate a session i get this:

Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR)
failed: m
(2) in e:\webserver\phptest\page1.php on line 2

Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR)
failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on
line 0

I run an Apache webserver under Windows and I have the latest version of
PHP. I looked up the "session.save_path" in the php.ini file and it
sais:

[Session]
session.save_handler  = files   ; handler used to store/retrieve
data
session.save_path = /tmp; argument passed to save_handler
; in the case of files, this is the
; path where data files are stored
session.use_cookies   = 1   ; whether to use cookies
session.name  = PHPSESSID
; name of the session
; is used as cookie name
session.auto_start= 0   ; initialize session on request
startup
session.cookie_lifetime   = 1814400   ; lifetime in seconds of
cookie
; or if 0, until browser is
restarted
session.cookie_path   = /   ; the path the cookie is valid for
session.cookie_domain = ; the domain the cookie is valid for
session.serialize_handler = php ; handler used to serialize data
; php is the standard serializer of
PHP
session.gc_probability= 1   ; percentual probability that the
; 'garbage collection' process is
started
; on every session initialization
session.gc_maxlifetime= 1440; after this number of seconds,
stored
; data will be seen as 'garbage' and
; cleaned up by the gc process
session.referer_check = ; check HTTP Referer to invalidate
; externally stored URLs containing
ids
session.entropy_length= 0   ; how many bytes to read from the
file
session.entropy_file  = ; specified here to create the
session
id
; session.entropy_length= 16
; session.entropy_file  = /dev/urandom
session.cache_limiter = nocache ; set to {nocache,private,public} to
; determine HTTP caching aspects
session.cache_expire  = 180 ; document expires after n minutes
session.use_trans_sid = 1   ; use transient sid support if
enabled
; by compiling with
--enable-trans-sid
url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=fakeentry"

What's wrong with /tmp ? Where's that map located? Do I need to change
the
entry? Should I create the dir? If so, where?



--
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]

--
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]




-- 
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] session handling

2001-03-28 Thread Pavel Kalian


- Original Message -
From: "[Inf] F!RE-WALL" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 12:10 PM
Subject: [PHP] session handling


 Every time I want to initiate a session i get this:

 Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed:
m
 (2) in e:\webserver\phptest\page1.php on line 2

 Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed:
m
 (2) in Unknown on line 0

 Warning: Failed to write session data (files). Please verify that the
 current setting of session.save_path is correct (/tmp) in Unknown on line
0

 I run an Apache webserver under Windows and I have the latest version of
 PHP. I looked up the "session.save_path" in the php.ini file and it sais:

 [Session]
 session.save_handler  = files   ; handler used to store/retrieve data
 session.save_path = /tmp; argument passed to save_handler
 ; in the case of files, this is the
 ; path where data files are stored
 session.use_cookies   = 1   ; whether to use cookies
 session.name  = PHPSESSID
 ; name of the session
 ; is used as cookie name
 session.auto_start= 0   ; initialize session on request
startup
 session.cookie_lifetime   = 1814400   ; lifetime in seconds of cookie
 ; or if 0, until browser is restarted
 session.cookie_path   = /   ; the path the cookie is valid for
 session.cookie_domain = ; the domain the cookie is valid for
 session.serialize_handler = php ; handler used to serialize data
 ; php is the standard serializer of
PHP
 session.gc_probability= 1   ; percentual probability that the
 ; 'garbage collection' process is
 started
 ; on every session initialization
 session.gc_maxlifetime= 1440; after this number of seconds, stored
 ; data will be seen as 'garbage' and
 ; cleaned up by the gc process
 session.referer_check = ; check HTTP Referer to invalidate
 ; externally stored URLs containing
ids
 session.entropy_length= 0   ; how many bytes to read from the file
 session.entropy_file  = ; specified here to create the session
 id
 ; session.entropy_length= 16
 ; session.entropy_file  = /dev/urandom
 session.cache_limiter = nocache ; set to {nocache,private,public} to
 ; determine HTTP caching aspects
 session.cache_expire  = 180 ; document expires after n minutes
 session.use_trans_sid = 1   ; use transient sid support if enabled
 ; by compiling with --enable-trans-sid
 url_rewriter.tags =
 "a=href,area=href,frame=src,input=src,form=fakeentry"

 What's wrong with /tmp ? Where's that map located? Do I need to change the
 entry? Should I create the dir? If so, where?



 --
 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]



-- 
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]




[PHP] Session handling and SSL

2001-03-26 Thread Sam Leibowitz

Apologies if this has been addressed earlier.

I'm using session.auto_start under an apache-ssl driven site, and it seems
that the sesion ID cookies aren't being sent with the "secure" flag
set. As a result, the browser is effectively ignoring the cookie.

Is this an obvious configuration problem that I'm too dumb to figure out,
or should I actually be worried?

Thanks,

Sam Leibowitz ([EMAIL PROTECTED])
Project Manager
Business Technology Center (http://www.btcwcu.org)


-- 
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]