session-cookies

phpmyadmin token mismatch for long time idle

僤鯓⒐⒋嵵緔 提交于 2019-12-20 08:57:09
问题 I installed phpMyAdmin 4.0.4.1 on my local develop enviroment, I set auth_type to config . Also I provide authentication requirements by this settings: $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['password'] = 'somepassword'; But after a while that it is idle, if I click on any link of it , it shows me an error token mismatch , Is there any way that I increase its TTL? or make it alive permanently? Above picture shows error. 回答1:

delete cookie in php

余生颓废 提交于 2019-12-20 07:04:50
问题 I am trying to delete a cookie. I am using setcookie("PHPSESSID", "", time() - 6400); which deletes the cookie just fine. However it is not entirely deleted. When looking at firebug, under "Response Headers" the cookie is being deleted. However under "Request Headers" the cookie is not deleted (and this affects the code behavior). Ho do I delete (or modify, or access) this other cookie as well? Thanks! 回答1: I had such problem for my logout code, after hard work and researches I myself finally

is it possible to set unlimited time for a cookie to a session variable?

拥有回忆 提交于 2019-12-20 02:47:36
问题 How do I set unlimited time to a cookie for a session? I have tried the following below but I still get undefined index notices on my sessions after a day: setcookie('idcourse', 'CourseID', 9999999999); setcookie('namecourse', 'CourseName', 9999999999); setcookie('id', 'ID', 9999999999); if (isset($_POST['idcourse'])) { $_SESSION['idcourse'] = $_POST['idcourse']; } if (isset($_POST['namecourse'])) { $_SESSION['namecourse'] = $_POST['namecourse']; } if (isset($_POST['id'])) { $_SESSION['id'] =

What are current CF9.02 Session Cookie Management Best Practices?

对着背影说爱祢 提交于 2019-12-19 19:49:06
问题 Common "best practice" for ColdFusion cookie session cookie management has been to implement something like this: <cfset this.setClientCookies = false /> <cfif NOT IsDefined( "cookie.cfid" ) OR NOT IsDefined( "cookie.cftoken" )> <cfcookie name="cfid" value="#session.cfid#" domain=".#cgi.HTTP_HOST#" path="/test/sessiontest"> <cfcookie name="cftoken" value="#session.cftoken#" domain=".#cgi.HTTP_HOST#" path="/test/sessiontest"> </cfif> OR <cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie

Setting Google Tag Manager cookies with SameSite and Secure attributes

℡╲_俬逩灬. 提交于 2019-12-19 17:41:41
问题 Chrome is reporting the following warning: A cookie associated with a cross-site resource at https://www.googletagmanager.com/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure . You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature

What happens if cookies are disabled?

爱⌒轻易说出口 提交于 2019-12-19 05:18:30
问题 Pretty basic question here. In PHP, if the user's browser has cookies disabled, you cannot make use of both server cookies ( $_SESSION ) AND client cookies ( $_COOKIE , setcookie ) or only the latter are disabled? Basically you can't make the user log in or do anything that requires a session, right? Also, in which case would someone want to have cookies disabled? Thanks! 回答1: Yes, it's true. Both sessions and normal cookies are normal cookies. If a user does not accept cookies, he cannot use

Magento session lost when switching to https from http

删除回忆录丶 提交于 2019-12-19 03:38:06
问题 I've searched high and low for a solution to this, with no luck. My host told me they are too busy to help. Magento 1.4.2 // SSL cert 1- When I add an item to cart, the page reloads and my item is added to cart. [good] 2- Next, I click home, and my items are no longer visible in cart sidebar. [bad] 3- Next, I click "Tops", and my items are still not visible in cart sidebar. [bad] 4- Next , I click "Bottoms" and the items show just fine. In all cases where the cart isn't visible, I can add

.Net MVC Partial View load login page when session expires

吃可爱长大的小学妹 提交于 2019-12-18 11:49:58
问题 I am building a web application using .net MVC 4. I have ajax form to edit data. If the user is idle for 15 mins it will expire the session of the user. When that happens if user click edit button it loads the login page inside the partial content hence now the current session expires. Edit Link - cshtml code @Ajax.ActionLink("Edit", MVC.Admin.Material.ActionNames.TagEditorPanel, MVC.Admin.Material.Name, new { isView = "false", id = Model.ID.ToString() }, new AjaxOptions { HttpMethod = "GET",

Single page application with HttpOnly cookie-based authentication and session management

不想你离开。 提交于 2019-12-18 10:13:21
问题 For several days now I've been looking for a secure authentication and session management mechanism for my single page application. Judging by the numerous tutorials and blog posts out there about SPAs and authentication, storing JWTs in localStorage or regular cookies seems to be the most common approach, but it's simply not a good idea to use JWTs for sessions so it's not an option for this app. Requirements Logins should be revokable. For example, if suspicious activity is detected on a

Session-only cookie for Express.js

北战南征 提交于 2019-12-18 09:56:19
问题 http://www.javascriptkit.com/javatutors/cookie.shtml Session-only cookies, on the other hand, stores information in the browser memory, and is available for the duration of the browser session. In other words, the data stored inside a session cookie is available from the time of storage until the browser is closed. Moving from page to page during this time does not erase the data. How can I achieve this using Express.js? 回答1: First off, that website is a horrible place to go. Now on to the