session-cookies

Magento: Show Visitor's Recently Viewed Product

孤街浪徒 提交于 2019-12-14 02:36:53
问题 This question is somehow related to my previous question. I want the "recently viewed" section to show the products which are recently viewed by my (as a visitor). So in that way, every visitor will see their recently viewed products in that section. Does magento provide any default functionality for this feature or do I have to do it the way I referred in my previous question. 回答1: Yes magento has its default functionality Goto app/design/frontend/default/(yourtheme)/tempalte/reports folder

How to check / determine session age using PHP

北慕城南 提交于 2019-12-14 02:08:57
问题 I wonder if it's possible to check session age somehow with PHP. I have browsed trough stackoverflow and have not found anything. Thanks for all answers in advance. In case anyone wonder why would I need to know something like this is, I want to show notification on top of the screen on all pages for all people are logged in less then 30 minutes. 回答1: Why not just set $_SESSION['logged_in_at'] = time() when the user logs in, then check if( time() - $_SESSION['logged_in_at'] < 30*60) ? 回答2:

Google Analytics Cross Domain Tracking does not work

邮差的信 提交于 2019-12-13 21:33:49
问题 When a visitor tries to do a booking, the site directs him/her to the booking engine site. ga('create', 'UA-XXXXXXXX-Y', 'auto', {'allowLinker': true }); ga('require', 'linker'); ga('linker:autoLink', ['mysite.com', 'bookingengine.com'], true, true); ga('require', 'displayfeatures'); ga('require', 'linkid'); ga('send', 'pageview'); There are no errors or warnings. I used a cookie monitor and it shows that browser creates another new _ga cookie when it loads the booking engine site. The same

flash player and browser session cookie sending issue

佐手、 提交于 2019-12-13 19:26:06
问题 i got a nice one. All the days before yesterday when calling a URLRequest the session cookie in the browser got sent back to the server for authentication. Suddenly when issueing the URLRequest the session cookie is not sent any more by the browser. When i open the copy and pasted url from the URLRequest in a browser window it works fine. Do you have any idea what the problem may be....?? Has it something to do with localhost?? maybe when sending a request from flash to localhost the session

How to get HttpOnly cookie

天涯浪子 提交于 2019-12-13 17:42:46
问题 I need to get the HttpOnly cookies set as Session cookie in my java code . To get non HttpOnly cookies I used Jsoup but now am stucked with HttpOnly cookies ? Note : Don't know if it matters but the site from which I want to get HttpCookies is developed in ASP.net. 回答1: I would expect Jsoup to make those available: Connection connection = Jsoup.connect("http://example.com"); Connection.Response response = connection.execute(); ...then use the cookies map on response . If the HttpOnly cookies

Django SSL for some pages only

丶灬走出姿态 提交于 2019-12-13 17:11:21
问题 I know there are other Q/A about that but they are too low-level. I want to know what is the proper (secure, DRY, maintainable) way of implementing partial SSL on a django site. I would like to have https on account pages (login, singup, ...) and "applicative pages", but keep public content pages in http. I am open to every kind of answers, but please explain like "use https everywhere, it has pros X, Y, Z that exceed cons A, B, C" , or "you have to use 2 cookies" If it's not a bad idea to do

Ajax resets PHP session

岁酱吖の 提交于 2019-12-13 13:53:29
问题 I know this question has been asked before so I apologize ahead of time, but I have gone over his solution multiple times and it does not fix the session reset in my case. I have a simple php page that outputs a session id for debugging. Like this: <?php session_start(); echo session_id(); ?> Then I have a simple HTML page with jQuery that performs an ajax request on that page and logs the output. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <script src="https://cdnjs

Why would Laravel Sessions fail in just Safari and IE after switching server?

回眸只為那壹抹淺笑 提交于 2019-12-13 11:34:14
问题 New VPS server with Webmin, Apache Centos 6, Laravel application and old database schema. All working fine on old shared host, but on VPS for some reason Laravel's Session storage (Laravel 3.0) is no longer working on Safari or Internet Explorer. It seems that the Session ID is just not saving on the client. Is a good way to force the Laravel Session ID to save on the clients browser? What are the differences between the way Safari/IE store cookies that might be creating this problem, when

Flash app within <iframe> does not send cookie in IE

荒凉一梦 提交于 2019-12-13 09:17:43
问题 We've got a Facebook application that is embedded in a Facebook canvas page and therefore it is loaded inside an iframe. The application itself holds a flash, put in tag. What happens is that when Http requests are made via the flash, cookie is not included in the request headers, so the server can't determine which the session is. This happens only in IE, with other browsers this problem is not reproduced. I examined the requests made via IE and Chrome and they differ in several things, most

In rails from byebug, how can I view the output of the session variable as a string, displaying only part of it?

对着背影说爱祢 提交于 2019-12-13 08:36:42
问题 In rails from byebug, how can I view the output of the session variable as a string, displaying only part of it? I can view the output of the session variable from the console but it is really long. If I could put that in a string and do e.g. thestr[1,100] . then that'd be ok. But I can't see how to get it into a string. ~/rubymac/cookiesandsessions/sessiontest1$ rails s => Booting Puma => Rails 5.2.3 application starting in development => Run `rails server -h` for more startup options Puma