session

ASP.NET looping through jagged array stored in session

hey all, im having some problems with jagged arrays stored in session for ASP.net i have some code which creates a jagged array, them populates, and then stores this populated jagged array into session protected string[][] answersJArray; answersJArray[0] = new string[4]("test","test1","test2","test3"}; answersJArray[1] = new string[...

how can i share data between PHP pages?

I have a PHP page and I want to share some data between pages like UserID, password. I'm learning about sessions and I'm not sure if Im using it correctly. <?php require_once('database.inc'); $kUserID = $_POST['kUserID']; $kPassword = $_POST['kPassword']; if (!isset($kUserID) || !isset($kPassword)) { header( "Location: http://dom...

First time using $_SESSION in PHP and I think I'm doing things wrong. I'm getting a syntax error.

Hi there guys. Here's my code for registerFormOne.php: <html> <head> <title>Registration Form - 1 of 2</title> </head> <body> <h1>Registration - Part 1 of 2</h1> <p>Please fill in all the required information before submitting the information.</p> <form action="registerFormTwo.php" method="post"> First Name:<in...

Saving information from textBox to SESSION isn't working, probably a newbie mistake.

I have two pages, A and B. I want to echo a variable written in A inside of the page in B. Here's the first page: <?php session_start(); ?> <html> <head> <title>Registration Form - 1 of 2</title> </head> <body> <h1>Registration - Part 1 of 2</h1> <p>Please fill in all the required information before submittin...

PHP Session_start is hanging

Kind of a weird issue, ok here is my setup... domain.com calls reads from an Iframe on sub.domain.com sub.domain.com makes an ajax call to sub.domain.com/call.php sub.domain.com returns ajax call to domain.com AKA long-polling Now, everything works perfectly when there is no session data (I close the browser and restart the page). ...

Pitfall of storing dataTable(10,000 rows) in a session variable?

Consider my dataTable contains 10,000 rows and i want to know the pitfall of storing datatable in a session variable... I want to use it until a new row has been added... What type of session mode should i use? ...

Sql Server Mode for Session state

Hi All, I am using Sql Server mode to store the session information of the application. After adding session information I am able to see the data in the ASPStateTempSessions table, but when I try to retrieve the same information of the stored sessions Iam not able to retrieve the information from the other application. How can I acces...

Can't get information from the $_SESSION from a simple newbie form.

In one form, I ask a user for his name, I use POST and send the user to FormTwo.php and save the $_POST["name"] to the session. In the second for I ask for his lastname and do the same and send him to the registerComplete.php page. I'm trying to echo all the information he wrote, which by my understand should be accesible through the $...

local copy of this webpage is out of date

My Web pages causes following error on the browser's Back Button, It works fine for firefox but not on IE, IE Says, Most likely cause: •The local copy of this webpage is out of date, and the website requires that you download it again. What you can try: Click on the Refresh button on the toolbar to reload the page. After refres...

ASP.NET Session Cookies - specifying the base domain

By default, ASP.NET will set its cookies to use "mydomain.com" as their base. I'd prefer to have them use "www.mydomain.com" instead, so that I can have other "sub.mydomain.com" subdomains that are cookie-free. I've done some digging into the Session and Cookie objects, and while I can find how to set the domain for a single cookie, I ...

Enable/disable ASP.NET session state programmatically?

One of our clients would prefer not to have any cookies at all on the public portions of their website. Of course for the back-end tools we use session state extensively, but it's not really necessary for the public parts of the site. Is it possible to just turn off session state for anonymous visitors, but leave it on for logged-in us...

How does a server judge a session to be expired (PHP) and how can the expiry time be changed?

Hello, I've been trying to learn how to use PHP sessions but I'm going around in circles. I understand that a session cookie can be given a lifetime ('session.cookie_lifetime') and that after that lifetime the cookie expires regardless of if a user interacts with the site. I would therefore assume to set this to 0 to indicate they should...

How do I manage sessions in a hybrid Ruby/GWT system?

I currently have a Ruby on Rails system, and there are plans to port it to GWT. Before we do this, the powers that be want to have a proof of concept with part of the site being written in GWT to show that GWT can use and display the current content. The flow of data in the GWT portion of the system is as follows: Client sends an RPC c...

jquery, session, cache

Hi, I have a problem and I want to resolve it with jQuery. I have a some Links on the page, and want to get the "text" from the link what was clicked. But I need this text to use on another page. Because when I click this anchor I leave this page , and I go to another one, and I need to use this "Get link text" on the second page. I ...

Django, relying on sessions

Hello, Less or more I am building my site heavly on sessions(especially for redirecting users etc), I am curious if this a dangerous practice. What would be the rough percentage of users who have disabled their cookie saving with their browsers ? I am open to any suggestions :) Thanks ...

Client polling (reverse AJAX) for chat requests in Django?

I want to make it that one user on the site can chat request another user on my Django site. I want the requestee to get a realtime box that say: "Do you want to chat?" How does the following client polling approach sound: user1 clicks on users2 nickname, generating a POST request to some /message/requests, which creates a Message of t...

PHP Sessions are locking up with ajax long-polling

I have an ajax long-polling request that works fine on the first page load. The problem is when the page is reloaded or a new page is browsed to then the PHP session is locked until the old PHP session times out. I have the following long polling code... while (time() - $time < 55) { if ($userid != 0) { updateUserSession(); ...

[PHP] run query after session expire

Hi all, i need a php code that will run a query after a specific session is going to expire, if(!isset($_SESSION['test'])) query; something like that but does work with session expire, Thanks ...

C# Last Request Time

I am in a C#/ASP.NET environment. I have a web app that has a series of users logged in - and I have a master user who needs to know the last time all other logged in users went to a page (i.e. makes a Http request). I am able to get a listing of all the users through a set of session variables through the Application variable - but I a...

Why is a row added to session datatable disappearing on refresh of page?

I have set up a class as a facade to access the session variables for my app. In this app I store an entire dataset for a particular employer as a session variable. Within one of the sub pages I have a button that adds a row to an existing table stored in that dataset. Dim curRow As Data.DataRow = mySession.tWorksiteOtherMeasures....