Post by Patrikiden » Tue May 15, 2018 3:14 am

Hello, i have an Opencart shop 1.5.6.4. I also have an extension that forces the user to login or register.
If one enters the site there will be an PHPSESSID cookie set. And this cookie is still there eaven if you restart the browser.
Is there a way to not set this cookie by default. I would like for this cookie to be set not untill a user clicks the register or the login button/link.

Thank you.

New member

Posts

Joined
Tue Aug 06, 2013 6:55 am

Post by IP_CAM » Tue May 15, 2018 4:19 am

Well, by WICH Default, if you force the users to be logged in anyway ? ::)
But beeing logged in, without using a cookie, does not work well, if
a System is only understanding it this way... ;)
Ernie

For Sale: Top URL's, including OpenCart V-Pro installed, like seen here:
http://www.bigmax.ch - http://www.ipcam.li - http://www.opencart.li
For Information + URL's offered, please contact me at: jti@jacob.ch
I am NOT available for Custom Support in existing OC Installations!
My Github Repositories: https://github.com/IP-CAM
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Patrikiden » Tue May 15, 2018 4:42 am

Yes but i want the Session cookie to be set only when a user clicks login button.

New member

Posts

Joined
Tue Aug 06, 2013 6:55 am

Post by IP_CAM » Tue May 15, 2018 7:25 am

Well, then get one of those Cookie-Warning Scripts, containing a Button,
wich has to be pressed, to accept Cookies. And the Warning Display should
not be made visible, as long as a Visitor is not logged in, by hiding it from view
for not-logged-in visitors. It would so automatically prevent a Cookie from
beeing set, I assume, at least...!? ???
And the Cookie Info might just exist, to tell the Visitor, that a Cookie will be
set anyway, regardless of, if this Button is pressed, or not, I have no idea about this,
since I never really cared about this function.
---
But that's just a crazy idea, still, after the 3th attempt, I Uncoder made it work, by use
of the TLS Euro Cookie Extensions:
https://www.opencart.com/index.php?rout ... n_id=30098
and this modified VqMod, instead of the one, contained in the Extension:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<modification>
<id><![CDATA[Euro Cookies]]></id>
<version><![CDATA[OS v.1.5.6.5]]></version>
<vqmver><![CDATA[2.6.1]]></vqmver>
<author><![CDATA[tlsoftware.gr - IP_CAM]]></author>
<file name='catalog/view/theme/*/template/common/footer.tpl'>
<operation error="log">
<search position='before' error="log"><![CDATA[</body>]]></search>
<add><![CDATA[
	<?php if ($this->customer->isLogged()) { ?>
	<script type="text/javascript" src="catalog/view/javascript/TLSCookiesEU.js"></script>
	<?php } ?>
]]></add>
</operation>
</file>
</modification>
BUT if one uses ANY KIND of 'active' external linkings, directing to somewhere like FB
or whatever, outside of the own Site, it would not make sense either, because all those
Sites will place their own...
And better don't ask me anything else about this, because I was lucky enough to get this to work... :crazy:
Good Luck :D
Ernie
---
Image

Attachments

euro_cookie_modified.jpg

euro_cookie_modified.jpg (78.03 KiB) Viewed 250 times

Last edited by IP_CAM on Tue May 15, 2018 8:43 am, edited 1 time in total.

For Sale: Top URL's, including OpenCart V-Pro installed, like seen here:
http://www.bigmax.ch - http://www.ipcam.li - http://www.opencart.li
For Information + URL's offered, please contact me at: jti@jacob.ch
I am NOT available for Custom Support in existing OC Installations!
My Github Repositories: https://github.com/IP-CAM
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Patrikiden » Tue May 15, 2018 8:04 am

OK i tested the TLS Euro Cookie demo, and in this demo the PHPSESSID is still there.
But thank you for your time. If any one else has any idea about this, please let me know.

Thank you.

New member

Posts

Joined
Tue Aug 06, 2013 6:55 am

Post by IP_CAM » Tue May 15, 2018 8:09 am

Well, I did not make this Modification on the Cookie Extension Demo Shop Page,
but on one of my own Test Sites, and you sure have not tested it there, or I would
have received some kind of registration-info ... ::)
Good Luck
Ernie

For Sale: Top URL's, including OpenCart V-Pro installed, like seen here:
http://www.bigmax.ch - http://www.ipcam.li - http://www.opencart.li
For Information + URL's offered, please contact me at: jti@jacob.ch
I am NOT available for Custom Support in existing OC Installations!
My Github Repositories: https://github.com/IP-CAM
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 46 guests