Tagged Questions
0
votes
0answers
10 views
Inconsistency with NodeJS Sessions and AJAX requests
My problem concerns the client side when I am trying to get the session through Node with express.
For example with this snippet https://gist.github.com/visionmedia/1491756 I have always "viewed 0 ...
0
votes
0answers
12 views
Determine google account changed using Javascript
I have a javascript application that needs to know when a user has logged out of or changed the Google Account. Ideally, I would like this to work without having to resort to using the Google API.
...
0
votes
4answers
55 views
Read session variable in javascript?
I am setting session variable in servlet and want to access that variable in javascript.
ps = con.prepareStatement("select * from USERDETAILS where username=? and password=?");
ps.setString(1, ...
0
votes
0answers
26 views
Meteor loses login session on page change (heroku only)
I have a meteor app with backbone routing. When running locally, I can browse to different pages and the currentUser stays logged in. When I run it on heroku (I also tried appfog with the same ...
-2
votes
2answers
33 views
PHP backend saves data from other session
I have implemented a PHP webpage with multiple users, using the application at the same time. In the application the users can fill some input fields and send the data to the backend. The backend ...
0
votes
0answers
87 views
javascript function will not fire - cannot determine why
I am trying to create a search system where users can return to a previously made search. In order to do this I am using php sessions to recreate their search whenever they return to the search page. ...
-4
votes
1answer
27 views
How can I load multiple sites in different context?
I want to create a page that "silently" queries other pages. It then crawls them for a result. When it's done querying all the pages, then it should calculate its own result according to the results ...
0
votes
2answers
34 views
session variable cannot be access inside a dynamic javascript file
I know the my question is weird , but it is my situation. I am calling a javascript with
<script src="js/jscript.php"></script>
And in the other hand i am writing javascript inside ...
4
votes
2answers
112 views
How to get session value using javascript
I have a class to deal with session variables here is sample attached:
namespace General
{
public class Session
{
public Session()
{
}
public static string ...
-4
votes
3answers
64 views
Javascript wont run in PHP
I have this piece of code:
if(isset($_POST['btnSubmit']) && $_POST['btnSubmit'])
{
require_once($_SERVER['DOCUMENT_ROOT'] . 'database.php');
$derpCard = $card;
...
0
votes
2answers
33 views
response data to $_SESSION?
I am pushing some data in to my javascript array every 30 seconds.This data comes comes via ajax response.I want to use this array on the next page I visit without its content being lost.
...
1
vote
1answer
48 views
Delete Specific Image According to Id created dynamically
I got a quick question. I am displaying images in a specific session directory through PHP and also deleting them, problem is, the script deletes all of the images not just one of them. Here is what ...
0
votes
0answers
26 views
PHP: session variables deleted after adding JS-script for drop-down menu
I tried to make some pages with few forms, where one page pass user inputs by session service in PHP. First page (started with session_start() ) has a form and after submit second page got these ...
0
votes
1answer
37 views
Starting a PHP session on a jQuery function event
I've got a simple jQuery function and at a certain point (let's say on a button click) I'd like to start a PHP session.
$(document).ready(function() {
...
0
votes
1answer
33 views
how to unset session in javascript on slider change
How can I unset a session using javscript. I know this can't be done in javascript alone but we have to call a php script. I want to unset the session on the change of my sldier value. i.e.
...
1
vote
1answer
27 views
Something wrong when session in django is changed by JS
I am not sure it's about django, rather javascript and browser.
my view:
def set_lang(request, lang):
request.session['lang'] = lang
# request.session.modified = True # optional, to be ...
0
votes
1answer
44 views
extent codeigniter Session expiration
I have $config['sess_expiration'] = 7200; on my config.php file, Which means that session last in 2 Hours.
By default the session is created up on user LOGIN. Now i want to last session based on ...
0
votes
4answers
73 views
How to access java.util.List session from javascript?
In java my code is,
List abcList;
request.getSession().setAttribute("abc", abcList);
I want to access this list in javascript,
var myVariable='<%=(List)session.getAttribute("abc")%>';
...
1
vote
3answers
41 views
How to submit a form on a page right after it loads
I am creating a page which has two forms (signup.php)
screenshot hosted at:
http://i.stack.imgur.com/acZNw.png
The first form has a textbox to search students by id (It includes the UIN and the ...
0
votes
1answer
23 views
What is the right chain of events when displaying stored session data for client
Is my following chain is correct?
First I display the client home.php which will create a session and will store inside $_SESSION['name'] = 'random_name' and will Greet end user client:
<?php
...
0
votes
1answer
38 views
Why do functions in object properties disappear if stored in a session (meteor)?
Let's say I have an object
object = {
property=function(){};
}
If I do console.log(JSON.stringify(object)) it shows property=function(){}, but if put the object in a session
Session.set("object", ...
0
votes
3answers
79 views
jQuery getJSON only once per session
I'm fetching the current Facebook like count with a code like this:
$(document).ready(function() {
$.getJSON('https://graph.facebook.com/<username>?callback=?', function(data) {
var ...
0
votes
1answer
80 views
Node.js client-sessions not creating req.session
I was having issues with node-client-sessions, so I tried using this sample application from https://github.com/fmarier/node-client-sessions-sample. However, even with this basic app I get TypeError: ...
0
votes
0answers
53 views
Backbone.js + Express 3: The req.session is undefined
I am pulling my hair out here, I've done Express session in the past, I've followed every Stackoverflow post on related issue. No luck.
app.set('views', __dirname + '/views');
app.set('view engine', ...
0
votes
0answers
48 views
Passing arguments from session to javascript in a JSP file
I am creating a web app and I am using LDAP for authentication. In the login page I get a "Name" and "Phone number" from Active directory and I store these two variables in the session. Then it goes ...
-3
votes
1answer
53 views
Destroy all session [closed]
I am want to write a script to destroy all sessions on my browser currently running
For Example: when script to destroy sessions is executed, If I am loggedin to facebook, gmail, yahoo or any other ...
0
votes
1answer
54 views
reading flask.session with angularjs
Is there a way to access something in session set with flask.session from angular.js on the client side? I am trying to pass data and store to session in the same call from flask and be able to read ...
0
votes
0answers
39 views
How to Open a Link in a New Session with IE8
When using window.open(..), is it possible to programatically open a new session window using Javascript or such in IE8?
I've done extensive research and cannot find a solution.
Your help is ...
0
votes
1answer
113 views
How to clear session and cookie values programatically using Javascript in HTML5 code for iPad Safari Browser
I'm having an application whose session is maintained by server.The user can login and view the brands if session is active.If the session expires,the user is redirected to the login screen.
On ...
0
votes
1answer
96 views
php session displaying previous session values
I am calling a console application from php which gives me some output. I have to display the output in a div after the console application is executed. I have passed the output from the console ...
1
vote
0answers
48 views
<a target=“main” issue in case of two different session
I have child window which has a hyperlink. On click of hyperlink i have to redirect to parent window. I could do this using following syntax-
<a target="main" ...
0
votes
1answer
258 views
Wicket 6 Invalidate Session in JavaScript
I'm working on a Wicket app that needs to log out the user when they close the browser or click a link to another site. I found Invalidate Wicket session after displaying message and rotsch's answer, ...
0
votes
4answers
59 views
Detect user exit site
I have an urge to detect when a user leaves my site in order to record accurately the session length of the user in question. I have thought of a couple possible solutions for this:
I first thought I ...
0
votes
1answer
183 views
Spring MVC - Redirect to login page in all tabs
I have an ajax based site built in Spring MVC. On header it shows user that is logged in and a menu to browse to other pages. On click of menu page is changed via ajax call and menu/header remains the ...
1
vote
2answers
51 views
exchange variables between html files in javascript
I am trying to share variables between two html pages. I am only using javascript and HTML5 to develop a windows 8 app. Based on an image which a user clicks on one page, I want a div on a second page ...
0
votes
0answers
48 views
axis 2 web service and javascript client - cookies or session to keep track of the user who has logged in
I try to implement a basic log in and log application using javascript and ajax request to an axis 2 web service.
so when a user registers hew he makes - I make ajax call with the data to my axis ...
1
vote
1answer
87 views
How to search in an output generated by a http request
I am using THIS api for searching postcodes in a range around it.
it generates an automatic output when I type in a postcode (1234) for example.
it's using jquery autocomplete for that.
Now is my ...
0
votes
0answers
89 views
Saving clicked link made by javascript as a session in php
I'm thoroughly confused and struggling with this issue. I have a calendar made in javascript and ajax. In the ajax there is a variable that I need to pull out and save in a session. This variable is a ...
0
votes
3answers
45 views
Issue with the $_SESSION is jQuery
I have a variable on PHP : $_SESSION["logCode"] (the value is set and the session is started) but I can't access it in jQuery using the jquery.session.js plugin and the following method : ...
0
votes
0answers
80 views
PHP+Javascript upload based on sessions not working
I'm using lighttpd + PHP 5.4 running with FastCGI on buildroot embedded linux.
I have written some time ago a modified version of PHP file upload progress script using following tutorial: ...
0
votes
1answer
48 views
Voting System (Multiple sites), solution for a toplist that has no callback
Hello everyone
I have a vote system, and Ill explain how does it work.
There are some websites called toplists that contains the top 100 items in it (depending on vote count).
Okay so I've made a ...
0
votes
1answer
62 views
printing out personal info stored as cookie and session php
I am trying to make the webpage alert users if the user hasn't filled out personal information or shopping order...
It is not doing what I would like it to be doing.. i think it is probably because I ...
0
votes
0answers
173 views
dynamically saving values to a session multidimensional array onclick
Another shopping cart type question and I'm struggling with it. I successfully made a shopping cart function with javascript and localStorage but that's not safe enough so I'm trying it with PHP. I ...
0
votes
2answers
107 views
Check if session has been started and set global var for javascript to use
I have the following setup:
index.php
subpage.php
When visiting either pages I have a "header intro animation". I only want the user to see this animation upon first page visit and not repeat it ...
1
vote
1answer
123 views
JavaScript REST Client and session management
I've been looking around for an answer to this question, but it looks like that nobody does this. Imagine you are designing a javascript REST client, and you want to create a login page. Surely, after ...
0
votes
1answer
69 views
1
vote
2answers
60 views
Codeigniter validation library store errors in session
I am making use of the validation library provided by Codeigniter.
My web application uses sessions and javascript to populate alert message.
Therefore, I want my error message to be in json format.
...
0
votes
0answers
182 views
How to switch between desktop and mobile versions of the site?
I'm currently using the following method to switch between mobile and desktop versions of a WordPress site with WordPress Mobile Pack
<a href="<?php echo site_url(); ...
0
votes
0answers
84 views
asp.net webform to handle variable in js as well as in aspx.cs file
I am enhancing/supporting development activity of web application build in asp.net web form. I would like to store a string containing ids separated by '-' keyword. when page completely load two ...
0
votes
1answer
80 views
Pass a value to another page when li element is clicked
In my jquery mobile app, when I click a list element, I get the id of that element. Now I want to pass that id to another page so I can make a query to the database. What would be the best way to ...