session-variables

Measuring Session Variable Size / Weight - Plus - Is there Session Compression?

Hello - I have a question about session variables. We use serializable value objects to store values. Sometimes we're using composite / aggregate objects and I'd like to know how much memory these objects are occupying. What's a good way to see how big these objects are, so I can see what kind of memory they are using on the server. ...

What can be the maximum size for the $_SESSION ?

I am importing a csv file with more then 5,000 records in it. What i am currently doing is, getting all file content as an array and saving them to the database one by one. But in case of script failure, the whole process will run again and if i start checking the them again one by one form database it will use lots of queries, so i thou...

What should I be aware of when using session variables?

Hi, I'm planning to use some session variables on an intranet ASP/VB.NET page, and want to make sure that I'm not missing out on anything important I should know, or that I have my information mixed up. So here's what I (think) I know about session variables. They: are stored on the server, so if I have a lot of users then they'll ea...

WIX: persist session data between C# CustomActions and subsequently displayed WIX Dialog

I am new to WIX and have been tasked with creating an installer that does the following: *Deploys a build of our application without overwriting the App.Config file for the application *Loads the key/values in the App.Config file and prompts the user with the "defaults" (existing values) and allows them to modify them before finishing ...

How to echo out info from MySQL table in PHP when sessions are being used.

Hello, I am using sessions to pass user information from one page to another. However, I think I may be using the wrong concept for my particular need. Here is what I'm trying to do: When a user logs in, the form action is sent to login.php, which I've provided below: login.php $loginemail = $_POST['loginemail']; $log...

Access Session data from ASP.NET page using jquery...

Hi guys, I'm trying to pass a variable stored in the Session object of my ASP.NET page with jQuery, representing the progress of a process running on the server as a percentage. i.e: Session['progress'] = 37; I've looked through some of the answers here; my code uses the same method as a question aswered correctly here: <head> ......

popup looses session on close unless using cookieless sessions

Hi all, I've coma across an issue which is only presenting on my site when it has been deployed, I have a popup which sets a session variable serverside on the user clicking a button, it then uses a javascript startupscript to close the popup and re-load the parent window. on the parent window in pageload the session variable is read....

Updating cookie in client and aware server-side (ASP 3.0)

Here's the scenario : I need to isolate session variables of my application when tabbed browsing on IE8. I'd like to set an ID by tab using SessionStorage. How to access this ID from my ASP script code (server-side) ? Right now I'm using a cookie and reloading the page, but on cookie change and reload my server-code is executing twice.....

php $_SESSION array not retaining values stored from previous pages

I am trying to create a form where there are multiple sections. It is actually an online menu ordering system. If you remain on the same section (say.. Appetizer), the values successfully load into $_SESSION and displays in the textbox as value. However, if you switch sections (say.. Soups), the values first loads. But when you submit yo...

Accessing variables from two different sessions?

I have integrated WHMCS and Drupal. However, when you go to Drupal and you print_r the SESSION, you see completely different information than what you would do if you go to the WHMCS pages. So, my question is, how do I access the one's session, from the other one? I need to access it, in order to see if the user is logged in or not. ...

IE Browser related problem

Hi, I am having a weird browser issue - works fine with FF, chrome but not in IE What I am trying to do is dynamically form the html for printing a coupon - and a part of it is a link redirecting to another page onclick = String.Format("javascript:PostBackCoupon123('{0}','{1}');", zipCode, cityName); couponContent.AppendFormat("<a bor...

Updating 1object appears to also update another. VB.Net

Hi, I having a problem in my website where I have 2 objects held in session, both object are structured differently and do not have any links to each other (not intentionally). Both objects however, have a collection of "Travellers". What I am trying to do is modify one collection by adding or removing "Travellers", when a finish button...

PHP: Notice: Undefined index where the session variable is defined.

I am making a registration system with an e-mail verifier. Your typical "use this code to verify" type of thing. I want a session variable to be stored, so that when people complete their account registration on the registration page and somehow navigate back to the page on accident, it reminds them that they need to activate their acco...

session variable php login realm

I am wondering whether its possible to change/set/delete my session variable AS A USER. I am re-thinking the way that I do login realm in PHP. The way that I do it now is that I check whether a certain session variable is set or not. However, this would break if someone can just change his/her session variable. ...

Do i need to convert a sessionvariable to string?

. Session("UserName") = "Sally" Dim userName As String = Session("UserName") Do i need to convert the session variable to string if i wanna follow "good coding practices"? Ex: Session("UserName") = "Sally" Dim userName As String = Convert.ToString(Session("UserName")) ...

Session read write issue when I use curl between two apps

Hi, I have 2 web apps running on the same server. I tested the following on localhost so far, but I am really curious as to whether there was any fundamental issues with this implementation. Let us call these apps Shopping.com and Checkoutshopping.com. When a user on shopping.com clicks on a PayPal button, I will trigger a function; ...

Preventing multiple getter invoke in a session managed bean ?

i'm using jsf 2.0.2 + richfaces 3.3.3. what can i do so my getter won't be invoked multiple time ?? i have this: @ManagedBean(name = "mybean") @SessionScoped public class mybean implements Serializable { public MyClass getMyClass() { if (FacesContext.getCurrentInstance().getRenderResponse()) { myClass = get_...

How to include Session variable in NavigateUrl in hyperlink

I'm sure I've done this before, but can't remember the syntax. How do I include a session variable in nagivateUrl in a hyperlink? I've tried this: <asp:HyperLink ID="lnkMyLink" runat="server" Text="My Link" NavigateUrl='<%# "http://absoluteURL.org?param=" + Session["myParameterValue"].ToString()%>'></asp:HyperLink> and this: <asp...

Set session variable inside plugin model

So I'd like to set/get a session variable from inside a plugin model that I've included to my project. I tried making a method (one getter one setter) inside the application_controller.rb but this did not work. Where can I make getter/setter methods so that a plugin model has access to them? ...

What is the best way to manage one's session variables?

I am trying to not let my session variables balloon out of control, espeically since some carry heavey objects. In the application I am developing there are 3 major items that can be searched on; let's say, people, cars, and pets. Each has a search screen and results (stored in sessions) which can be sorted and paged. When I go to the d...