session-variables

How do I reference Session.Contents form a class?

This is an ASP.NET 2010 web app written in vb. I use several Session variables. I want to pass them all to a central class and let the class manage them. However, I am having some trouble. Here is the code on the calling page: Dim arrGoodSessions() As String ={"nameofsession1", "nameofsession2", "nameofsession3"} Utilities.ManageSessi...

Confused by PHP session problem (Rackspace)

My PHP session fluctuates between different values for no apparent reason. here is my test code that proves it: <?php //test.php ini_set('display_errors',1); error_reporting(E_ALL|E_STRICT); session_start(); print_r($_SESSION); ?> When I refresh that test.php, the $_SESSION has different values (about 3 different arrays in total),...

Is it possible to "pirate" a session variable (I do not want to know how)

I am currently doing a website in php, we are using a Session variable to store the permission level of each user. For example, if any one of you would go on the website, you would automatically get a session variable with a value of "member". What I am asking is: Is it possible for an attacker to go on the website and modify the value...

IE 8 - session variables are lost while window.open

Hi, I encountered with a weird problem at one of our machine. Machine has: Microsoft Windows 7 Professional (6.1.7600 Build 7600) Internet Explorer 8 (8.0.7600.16385) Consider below case: Page1 renders an anchor link with window.open("page2.aspx",some attributes etc) When user clicks on above link, page2.aspx opens but no sessions ...

Can not get the session moniker for the task <guid>

Hi all, .NET 2.0 web app, running on a virtual server. I'm getting the following error message in Event Viewer: Can not get the session moniker for the task 4572092d-622d-4a20-9b96-691371021d49. (The guid sometimes changes, but are quite constant). This app was recently migrated to a virtual server from a physical server, and the err...

Session variables working when testing with Chrome and IE but not Firefox

I'm writing a quiz program using PHP and a bit of Javascript. The questions can be answered correctly when IE or Chrome is used but Firefox refreshes the page and increments the session variable. Here's a code snippet: if(isset($_GET['answer1'])) { if($_GET['answer'] == $_GET['answer1']) { include 'config.php'; ...

Display Session variables in GridView (ASP.NET)?

Just starting with ASP.NET and find it difficult to use the GridView. I have a set of Session variables which I want to put into a GridView control, but I lack the knowledge. The file: <%@ Page Title="Warehouse" Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.master" CodeFile="Warehouse.aspx.cs" Inherits="Warehouse"...

need help with session variables

I'm trying to set a session variable and use it on another page. I have: pg1 session_start(); $_session['sessionID'] = $row['ID']; Then on page two I have. session_start(); $userID = $sessionID; But when I use JC to alert this out I get nothing.. Am I doing this wrong? Thanks. ...

Clearing session values on tab close

To my understanding the session variable gets cleared when a users closes their browser. Is there anyway to clear the session variable when a users closes a tab in a browser? The reason I ask is that I need to differentiate two visits if a user is on the site and closes the tab but not the browser, and the user goes back to the site on...

Passing data between Wordpress 'pages'

I have a menu, when the user clicks on any menu item, I want to take them to the same page, but I want to style the page differently depending on the menu item...for ex: change the background color to be different. What's the best way to do this? I was thinking that when they click on a menu item, a variable can be set or a session vari...

Unique ID in PHP vs. $_POST Form

Hi, Here's the idea: User hits a page where he can create an "item. On this page he can upload files and before submitting form (powered by Flash for users with Flash/Javascript support and powered by pure PHP + 5 file unputs + iframe for users without Flash/Javascript). It needs to stay on the same page. When user hits a page I'm usin...

Multiple sessions in one instance using PHP?

I have a project where I would like to create two session cookies in one browser. The first session would be to uniquely identify a person, the second would be to share events within the session between users. I have been using a database for this, but would like the data to disappear when the session dies. There are no logins within the...

How session works? Where to save the session value? How to increase session life time?

How session works? Where to save the session value? How to increase session life time? ...

Broken Session variables on iPhone/iPod Touch using PHP

I am trying to just set a session variable on one page, then load it on another page. This code works on Firefox on Windows 7. It does not work when accessing the same pages on my iPod Touch. The first page is like this: session_start(); $id = "e0vgrejdmkjbltrdrtqtnjgzmy1cqurfluuzodeyqjlcoey5rx0"; $_SESSION['id'] = $id; The second p...

Python pickling error when using sessions

In my django app I was creating an extended user profile using session vars. But when registration form was saved and user was about to create, I got following error : Traceback (most recent call last): File "\Python26\Lib\site-packages\django\core\servers\basehttp.py", line 279, in run self.result = application(self.environ, sel...

Change Permanently Session System Variable in MySQL

I added this line to my.ini wait_timeout=2000000 When I type show global variables It prints wait_timeout=2000000, but when I type show variables It prints wait_timeout=28800 I can set with set wait_timeout=2000000 But I do not want to set it all the time manually. Do you have any suggestion to set permanently session sys...

Debugging ASP.NET Session Variables

when the process run in the same browser, it's easy to open a new TAB and check the session variables there, everything works fine in this situation. But when a webpage runs inside a WebBrowser Control (under Windows Forms) for example, I can no longer get any Session Variable that process is using. Does anyone have an idea on how t...

IE8 does not keep Session Variables

If I host an ASP.NET page with: <%@ Page Language="C#" %> <!DOCTYPE html> <script runat="server"> protected void btn_Click(object sender, EventArgs e) { lbl.Text = HttpContext.Current.Session["a"] == null ? "null" : HttpContext.Current.Session["a"].ToString(); } prot...

Pasting the required url to address bar destroys the session..pls help

I get a mail in which i am given a link to a page of accounthistory page like this: http://www.mydomain.com/accounthistory.php?order_id=491 using this i can view the order detail, but when I am logged in to my account and I access the same link copying from mail i got, I get the page but i get logged out. this page is also available...

Issue regarding PHP $_SESSION variables

I have a login form grabbing hashed passwords from a database. If a "submit checking" <input type="hidden"> is equal to 1 (the sample below will explain this better) then the page content is revealed, if it is not equal to 1 the login form is displayed. The form is as follows: <div id="login" style="<?php echo $style ?>"> //$style is by...