Questions tagged [session-variables]

Session variable is a unit of information within a session state. It is maintained across a user's visit within the constraints of the stateless HTTP protocol.

3857 questions
1
vote
1 answer

Classic ASP and ASP.Net Session Bridging, passing Arrays

I have seen many articles about session bridging between Classic ASP and ASP.Net. But, I could not find one that works not only saving primitive types to session state and but also saving reference types to the session state. I want to know how…
1
vote
3 answers

Need help on session variable

How do i return a Userid in web method and use that returned result in website ASP.NET,make it session variable in order to use it on different webpages in ASP.NET? [WebMethod] public bool UserLogin(string EmailAdd, string Password) …
Puseletso Michelle
  • 141
  • 1
  • 1
  • 8
1
vote
1 answer

httpwebrequest don't send client header with self defined networkcredentials?

regarding to this post Apache NTLM Auth from C# client do not work with self defined NetworkCredentials I added a method to authenticate. I thought I am done with my work for today :) but I run into another problem. Code: public static void…
YvesR
  • 5,922
  • 6
  • 43
  • 70
1
vote
1 answer

asp.net - C# Session variable being modified by reference?

It looks like the value in my session object changes when I modify a local variable set from session. Setup: .net 2.0 BasePage retrieves a complex object from session , casts it, and stores it in a class level variable. Child Page uses class level…
Billy
1
vote
1 answer

How basic types get stored in asp.net session variable

I need to know How basic types Int, enum, string get stored in session variable. Are they get serialized first before storing.
Vaibhav Jain
  • 33,887
  • 46
  • 110
  • 163
1
vote
0 answers

Session value changes on postback in Citrix Xen App

We use a citrix reciever to view a application hosted in server. The Application works fine when it is viewed normally (not through citrix). The issue i have is, I have a dropdown in my master page. When i login the Session will be defaulted and…
1
vote
1 answer

Yii Session Not Working

Some problem is coming when I am uploading site to online server. User authentication was working on my local computer but when I am trying to upload it to a server, it is not working. When I sign in, it redirects me back to the login page. I have…
Tayyab Shabab
  • 259
  • 1
  • 6
  • 16
1
vote
1 answer

Session Variables for Counting Login attempts

I am trying to implement a login scheme where I keep a count on the number of attempts the user tries , this is for security reasons . My code is : { ob_start(); $_SESSION['attempts'] = 0; $_SESSION['sleep'] = 0; …
Varun Jain
  • 1,901
  • 7
  • 33
  • 66
1
vote
2 answers

Overwriting PHP variable and remembering it

So I have some data in MySQL being shown on my PHP page inside a table. I've set it up so that each page only displays 3 results each (temporary until it goes live, then it will be more). Everything works fine and it displays those 3 results on each…
Envious
  • 478
  • 1
  • 8
  • 28
1
vote
0 answers

Echo print literal codes in web page. [PHP]

I'm having a hard time figuring out what's wrong with my php code regarding the passing of variables or perhaps regarding my php syntax. So this is the php containing start_session();. These are located at the top of those pages that need to share…
user1717305
  • 49
  • 1
  • 5
1
vote
1 answer

Unique Session ID's for individual pages

I have unique session variables being set at different pages. I want to make my session variables discreet and localized in its respective page. The problem is that php stores a session id as a cookie for each user so that sessions are only unique…
user1464296
1
vote
2 answers

using session_start with header redirect

User fills out a form on page 1. The form submits to page 2 with POST. page 2 makes the database insert but needs to insert the user id that is stored in a session variable so I need to do a session start that to get that session variable but that…
Casey
  • 1,941
  • 3
  • 17
  • 30
1
vote
3 answers

The correct procedure for preventing access to web pages if login details haven't been entered PHP

I am in the process of making a secure Web application on a remote server. Is there a industry standard of preventing users from accessing web pages that are only available to users who have posted their login details. So far authenticated user…
Matthew Underwood
  • 1,459
  • 3
  • 19
  • 33
1
vote
2 answers

Session variable value changes between page processing somehow

I have a script that processes a search query. The results are returned with a sortable header, so clicking on the Lot # column title would sort the results by the lot # ASC. However, if you had already sorted it ASC (which this is stored in a…
James
  • 3,765
  • 4
  • 48
  • 79
1
vote
1 answer

ASP.NET Different Session Variable Value on the Web Service

I have been trying to solve this problem for 2 days now and I haven't been able to find anything useful on the net yet. Strange thing is, this used to work..! After changing some settings on the web server (unfortunately I don't recall exact…
honor
  • 7,378
  • 10
  • 48
  • 76
1 2 3
99
100