All Questions

927
votes
6answers
236616 views

How do servlets work? Instantiation, sessions, shared variables and multithreading

Suppose, I have a webserver which holds numerous servlets. For information passing among those servlets I am setting session and instance variables. Now, if 2 or more users send request to this serve...
357
votes
22answers
320478 views

Check if PHP session has already started

I have a PHP file that is sometimes called from a page that has started a session and sometimes from a page that doesn't have session started. Therefore when I have session_start() on this script I so...
5
votes
8answers
73314 views

Session variables not working php

Here are the code of my login page where the login script checks for the authenticity of the user and then redirects to inbox page using header function. <?php session_start(); include_once('conf...
156
votes
10answers
250997 views

Session variables in ASP.NET MVC

I am writing a web application that will allow a user to browse to multiple web pages within the website making certain requests. All information that the user inputs will be stored in an object that ...
143
votes
5answers
276008 views

How to access session variables from any class in ASP.NET?

I have created a class file in the App_Code folder in my application. I have a session variable Session["loginId"] I want to access this session variables in my class, but when I am writing the fo...
81
votes
4answers
293586 views

How to use sessions in an ASP.NET MVC 4 application?

I am new to ASP.NET MVC. I have used PHP before and it was easy to create a session and select user records based on the current session variables. I have looked everywhere on the Internet for a sim...
41
votes
13answers
90669 views

HttpContext.Current.Session is null when routing requests

Without routing, HttpContext.Current.Session is there so I know that the StateServer is working. When I route my requests, HttpContext.Current.Session is null in the routed page. I am using .NET 3.5 s...
42
votes
5answers
39253 views

PHP session side-effect warning with global variables as a source of data

I'm trying to host a PHP web site that was given to me. I see this warning: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be a...
50
votes
4answers
46216 views

Are there limits for session variables?

As the title says, are there limits (if any) for session variables or they're considered as usual variables and can store equal amount of data? I'm looking if there are any other limits aside from va...
13
votes
8answers
118196 views

How to use store and use session variables across pages?

When one page is accessed, I would like to start a session and store a session variable: <?php session_start(); $_SESSION['myvar']='myvalue'; ?> Then from another page, I would like to c...

Previous Next