session

Why are my PHP sessions dying? And why can't I restore them?

I have an app using PHP and the PayPal API. The basic way it works to get a payment is that you do a web service call to PayPal to get a token and then do a browser redirect to PayPal with that token for the user to pay. After the payment details have been confirmed, PayPal redirects back to the URL you originally set in the service call...

How can jsessionID be suppressed on OC4J?

I'm deploying a JSF (myfaces, restfaces, and richfaces) app to OC4J. I don't want the jsessionid to appear in the status bar or the URL address. I have managed to suppress it in almost all cases. The one case that I still have problems with is when the site is first visited with a "clean" browser (with no cache, history, etc.). In this c...

ASP.NET Session Timeout Testing

I'm a doing some blackbox testing of a ASP.Net website and I need to test different session timeout scenarios. I'm not sure they fully encapsulated session timeouts. Other then leaving a page open for 20 minutes is there an easier way to force a session timeout? ...

ASP.NET session and storing objects that use COM interop

I'm working on an asp.net web site. We have to use com interop to interact with legacy vb6 activex components. The components in many cases rely on receiving a context object (which is itself a vb6 activex component) as a parameter. The context object is fairly costly to construct. Therefore one idea is that a context object is const...

How to set session variable skip_unusable_indexes to true in a PL/SQL package to speed up a table delete/insert?

I'm trying to speed up a data load which is controlled via a PL/SQL stored procedure. I've programmatically altered the indexes for the table I want to refresh to be unusable. I want Oracle to ignore these unusable indexes. I can issue the statement... ALTER SESSION SET skip_unusable_indexes = TRUE ...but I subsequently get the error...

What is the best way to read the Rails session secret?

I would like to access the Rails session secret programmatically (I am using it to generate a sign-on token). Here's what I've come up with: ActionController::Base.session.first[:secret] This returns the session secret. However, every time you call ActionController::Base.session it adds another entry to an array so you end up with so...

Custom ID in session handling by Java Servlet API

Is it possible to assign a custom ID to a HTTP session through Servlet API? I know that session handling from any application server, Tomcat for example, it's enough good to generate unique IDs. But I have custom unique session IDs based on information per user and time, so it won't be repeated. And I looked at every documentation abou...

How can I keep the session clean?

This is in regards to a situation where Session is used to store some temporary data - one example being information entered during a multi-step registration process. If a website has a number of such sections - which wants to utilize the session as temporary data store for pages within the section, what is a good way of cleaning up the...

Forms and no Cookies - elegant way to submit forms

Hoi! I have a form I wish to submit, but I need to add the PHPSESSID, because some clients allow no cookies. There are several javascript functions on my page which displays a list of users (search, sort, open details), the page is generated by PHP. Now I am looking for an elegant way to have the PHPSESSID included in every submit of ...

How to find out size of session in ASP.NET from web application?

Hello! How to find out size of session in ASP.NET from web application? Thanks ...

ASP.NET: Popup browser windows and session cookies

SUMMARY: When browsing an ASP.NET website using Windows Explorer, popup windows do not "borrow" the session cookie from the parent window. DETAILS: I'm working on an ASP.NET website (.NET Framework 2.0). I use FormsAuthentication. It is a requirement to use cookies to handle the session. On a page I have a button. When the user clicks...

What is the most efficient way to handle en expired session with ASP.NET 2.0

On the site we are building. We need to be able to redirect the user to a default page when his session has ended. At first sight we used the Session_End with a Response.Redirect to do this job. Sub Session_End(ByVal sender As Object, ByVal e As EventArgs) Response.Redirect("~/global/exit.aspx") End Sub But it generates a craploa...

Sharing ASP.NET session cookies with a Java applet

I have a Java applet that runs inside a forms-authenticated aspx page. In the .NET 1.1 version of my site, the applet has access to the session cookie and is able to retrieve a file from the server, but in the .NET 2.0 version it fails to authenticate. I have seen a couple of forum posts elsewhere that state that 2.0 sets cookies to Htt...

How to manage a simple PHP session using C++ cURL (libcurl)

I'm writing a C++ client which is using libcurl for communicating with a PHP script. The communication should be session based, and thus the first task is to login and make the PHP script set up a session. I'm not used to working with sessions either from C++ or PHP. I basically know that it has to do with cookies and communicating ses...

Using Session[] with Page Load.

I want to load the data into session so that when the next button is clicked in crystal report viewer then in should load the data from the datatable instead retrieving the data again from the database. Here goes my code... ReportDocument rpt = new ReportDocument(); DataTable resultSet = new DataTable(); string reportpath = ...

PHP - Sessions - Security

How secure are php Sessions? I am planning to use the native PHP sessions to authenticate users. Can users modify session data like they can $_POST and $_GET data? ...

Can you rename a shell session by command in linux?

I like to keep my shell sessions named with useful titles as I work, this helps me keep track of what I'm using each of the many tabs for. Currently to rename a session I double click its name on the tabbed part of the console - is there any command that I can use to do this from within the shell? It would save me a bit of time. thanks...

How to manage session variables in a web cluster?

Session variables are normally keept in the web server RAM memory. In a cluster, each request made by a client can be handled by a different cluster node. right?! So, in this case... What happens with session variables? Aren't they stored in the nodes RAM memory? How the other nodes will handled my request correctly if it doesn't ...

What is the best solution for storing ASP.NET session variables? StateServer or SQLServer?

StateServer or SQLServer? What is the best solution for storing ASP.NET session variables? What are the pros and cons of each? Are one better then other in any particular situation? ...

What's the best way to manage php sessions in an LAMP cluster?

I've been reading up on this subject for a while. Suddenly the day has come where this solution is a necessity, not just a dream. Through my reading, I've seen the popular differences being (file based, memcached, shared memory (mm), sql table, and custom). The idea we originally thought of was using a ZFS or AFS mounted on each of the...