I'm trying to set session cookie in javascript like this:  document.cookie = 'name=alex; path=/'   But Chrome doesn't delete it even if I quit browser and launch it again.   I checked in Firefox and Opera and both work as intended -...
I am Trying with onbeforeunload, and Unload function. But it didn't work. When clicking a link or refreshing, this event got triggered. I want an event that is triggered only when a browser window or tab is closed. The code must work in all bro...
So my web application requires authentication, and I have a signup page where if the person tries to sign up with an email that is already in the database, I want to show them an error message. I'm trying to do this using this code on the html...
I have one JSP file as jsp 1.jsp and another JSP file as jsp 2.jsp  I've included jsp 2.jsp in jsp 1.jsp using <%@include file="jsp 2.jsp" %>  Now I need a click event on some element. And on that event I want to transfer a string...
I want to have a timer going to run every 3 minutes on the page (javascript), to detect if a php session ($_SESSION) has timed out... and if so, redirect them automatically.  A good example would be, a user logs in and runs up stairs, and never comes...
I'm very new to learning Node and Express, and I'm still trying to wrap my head around the code flow with express. Suppose we have code that looks like this in a session.js:  app.post('/session', notLoggedIn, function(req, res) {...
How do I get sessions working with Node.js, [email protected] and mongodb? I'm now trying to use connect-mongo like this:  var config = require('../config'),     express = require('express'),     MongoStore = require('connect-mong...
so in my php I have something like this  $_SESSION['opened'] = true;   But It will not be set to true until user will perform some actions with some other html\php pages  So I need on some Ajax function to be able get this session variable. A...
I'm developing an app on localhost using:  Google Chrome 33.0.1750.154 m  XAMPP Version 1.8.3  I've been using these for a while now and today all of a sudden Chrome is not clearing session cookies when I close the browser (all windows), even...
I have a front end script that calls a PHP page via ajax. That PHP page can run for 20-30 seconds. During its run, it sets a $_SESSION variable multiple times to indicate status/progress.   While it's running, I want to have an interval in JavaSc...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.