for security reasons, I want the cookie created by web2project to be deleted, as soon as the browser closes or the user logs out. Any idea where I can implement it???n

asked 01 Jun '15, 12:33

Themoulos's gravatar image

Themoulos ♦
accept rate: 22%

edited 24 Jan '17, 16:42

OK, found it:

Go to classes->w2p->System->Session.php and edit line 216:

session_set_cookie_params(0, $cookie_dir,$domainName,true,true);

IMPORTANT!!! Only first parameter defines the lifetime of the cookie. Above line is a copy from my installation and also states that site must be secure (SSL certificate installed) and http only, as you can see in the function definition:

session_set_cookie_params ($lifetime, $path = null, $domain = null, $secure = false, $httponly = false)
permanent link

answered 26 Jan '17, 10:30

Themoulos's gravatar image

Themoulos ♦
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 01 Jun '15, 12:33

question was seen: 1,980 times

last updated: 26 Jan '17, 10:30

powered by Bitnami OSQA