session_set_cookie_params is a php function, you can call it anywhere, but usualy the most early possible
you can test by placing that at the beginning of the client.php file

I have found out that to have the session and cookie to expire when I wanted I had to use :
session_cache_expire(x); // x being ni minutes I believe
session_set_cookie_params(y); // x being ni second I believe

those are the parameter to set during code execution, there should be comparable option to put in the php.ini (session.cookie_lifetime and session.cache_expire)

I have not checked but maybe these parameter are overrided in Cartoweb somewhere so that why the parameters in the php.ini are ignored, I let you do a grep to find out.

regards
Oliver


Hi, thank you for the answer.
session.cookie_lifetime = 0
this I have already in php.ini .

In firefox I can see the session:
name: PHPSESSID,
Content: hf789dgdf76gdfgdf8g7678gd8fgd
Server: 10.0.0.2
Path: /
Expire: At the end of relation

But Cartoweb (exportPdf) still says session expired (after 30 minutes).
- Reload calling page!
could anybody help me please?

thank you

wochter



Bruno Friedmann  wrote / napĂ­sal(a):
WochteR wrote:
Hi,

past 30 min. of cartoweb inactivity session expire.
I cannot print to pdf nor tooltips doesn't work.
How can I disable session expiration by correct way?

I have this in my php.ini:
session.use_cookies = 1

Hi Wochter,

Could you check if inside the php.ini you have
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

Be carefull this parameter could be change by another directive ( inside vhost definition, or .htaccess)
Normally the session would remain until you close the browser.

Be carefull, your server could have a cron job that automagically (badly) delete all file where php session are stored
/tmp in usual settings.


(Or how can I change this issue to be nicer and readable for standard users?)


 Failure

Class : CartoclientException
Message : Session expired: reload calling page!
Backtrace:

file: 514 - /home/bystrica/mapserver/client/ExportPlugin.php
call: ExportPlugin->getLastMapRequest()

file: 1379 - /home/bystrica/mapserver/projects/bbintra/plugins/exportPdf/client/ClientExportPdf.php
call: ExportPlugin->getExportResult(Object(ExportConfiguration))

file: 1532 - /home/bystrica/mapserver/projects/bbintra/plugins/exportPdf/client/ClientExportPdf.php
call: ClientExportPdf->getExport()

file: 1172 - /home/bystrica/mapserver/client/Cartoclient.php
call: ClientExportPdf->output()

file: 1263 - /home/bystrica/mapserver/client/Cartoclient.php
call: Cartoclient->doExport(Object(ClientExportPdf))

file: 33 - /home/bystrica/mapserver/htdocs/client.php
call: Cartoclient->main()

file: 3 - /home/bystrica/mapserver/htdocs/bbintra.php
call: require_once("/home/bystrica/mapserver/htdocs/client.php")



thanx

wochter
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users




_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users


_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to