session

Why should or shouldn't I store a Dataset, Datatable, etc as a session variable in an ASP.NET page?

I am working on a web application that is consuming a Dataset returned by a web service. As the application is running I store that Dataset as a session variable to be used over and over again as the user navigates to the different pages that will edit the tables within the dataset. The idea was the user will only have to wait for t...

Where should I keep my FacebookSession object for a Flex AS3 project?

This question extends beyond the Facebook library and is really a general architecture question. I am using the Facebook AS3 lib which has a FacebookSession class. The class contains data for a facebook session so that I can make authenticated calls to the Facebook API. I am using the Facebook API all over my Flex app and I am tempted...

does Apache caches the SESSION data in memory when I use the file handler for session?

In PHP, when I use the file handler for session storing,does Apache caches the SESSION in memory? If not, would a usage of db storage engine on memory tables (mysql) would be a good idea? ...

Session cookie not being sent when PHP session.auto_start set true

I been trying to replicate a production setup on my development server but can't get the sessions to work properly. After many frustrating hours I've tracked the problem down to the fact that php.ini directive session.auto_start isn't starting the session. AFAIK, session.auto_start = 1 and a session_start() at the top of a script shoul...

session id in php

hi every one i am trying to echo session id i saw that each time refreshing the page it chang thats why i cant login . please any one suggest wht prob should be there ...

Set up a login form in php and the first admin login

Hi everybody, I would like to setp up a login form that will included in certain pages. I found many tutorials that talk about it but, how can I add the "admin" account for the first time ?! In phpmyadmin directly? I can do it but, want it to be encoded with the md5 algorithm. Does anybody know where can I find a ready login system wit...

How to save http referer in rails

I'm trying to save the site that a user came from when they sign up. Right now I have a before_filter in my ApplicationController: before_filter :save_referer def save_referer unless is_logged_in? session['referer'] = request.env["HTTP_REFERER"] unless session['referer'] end end Then when a user is created, it chec...

Why does a change of Session State provider lead to an ASPx page yielding garbage?

I have an aspnet webapp which has worked very well up until now. I was recently asked to explore ways of making it scale better. I found that seperation of database and Webapp would help. Further I was told that if I changed my session providing mechanism to SQLServer, I would be able to duplicate the Web Stack to several machines ...

How to use Jquery ajax to set $_SESSION?

I am trying to create a simple log in system that uses ajax but the problem I am having it wont set the $_SESSION. login.js: $('#bt-login').click(function(){ var login = $('#login').serialize(); $.ajax({ type: "POST", url: 'widgets/Login/loginFunction.php', data: login, c...

Where I should declare a session variable in asp.net

I am building a Asp.net Application. I need to save a HashTable in a session. At page load i am writing protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Session["AttemptCount"]=new Hashtable(); //Because of this line. } } Here problem is, when a user refresh the page, session["Atte...

simplexml_load_file and $_SESSION

Hi everyone, I have a problem using simplexml_load_file and session vars in PHP. So, I have 2 PHP files, one generates some XML and the other one reads it. The file that generates XML should read some $_SESSION vars, which had been set in the other, but it won't... For instance, say the first file is something like: FILE 1 (reads XM...

CodeIgniter: store more information into the session

this is the function I have, in my login controller, which stores data into an array and then set the userdata function validate_credentials() { $this->load->model('membership_model'); $query = $this->membership_model->validate(); if($query): $data = array( 'username' => $this->input->post('username'), //add...

uiwebview session problem

NSURL *url = [NSURL URLWithString:@"http://ip/login"]; NSMutableURLRequest *request = [[NSMutableURLRequest alloc]initWithURL: url]; NSString *body = [NSString stringWithFormat: @"name=%@&pass=%@", @"phpxiaoxin", @"86f7e437faa5a7fce15d1ddcb9eaeaea377667b8"]; [request setHTTPBody: [body dataUsingEncoding: NSUTF8StringEncoding]]; [request ...

asp.net sessions lost when the page is reloaded (ispostback = false)

Hi Hi, I have a really strange problem to do with session variables. I have an asp.net page that sets a few session variables. On my development machine (localhost), I do a postback and the session values are still populated. When I Reload the page by clicking on the url bar and pressing enter the session variables are still there. ...

Zend session_start gives Fatal error: Exception thrown without a stack frame in Unknown on line 0

When running a Zend application locally I get Fatal error: Exception thrown without a stack frame in Unknown on line 0, i traced that error to a line $startedCleanly = session_start(); I can't get through it, when I restart the server and reload the page I do not get the error, but on every other reload I get it, I looked into a php/tmp...

High Cache Miss From Memcache When Storing Sessions

We have been having problems with the memcache server storing sessions data, the cache miss was about 20%, therefore we added in another pool of memcache servers, but now the cache miss rate is up to 50%. Any possible cause or solutions for this problem? ...

Finding last active time for logged in user

I am using ruby on rails session to store a user cookie to keep them logged in, so I can't just update a last_seen column after they login. I'm trying to figure out the best way to find out if a user has been active in the last day. This is what I have so far but I'm wondering if there's a better way: class ApplicationController bef...

Cookies are not working on a php session file:

I tried the following: Basically, it should say: If there's no cookie, get lang from web browser (this part works and that's the job of lang.php). If there is cookie, the session will take its value from the cookie. If there's nothing, leave it as English. session.php: /* Class constructor */ function Session(){ $this->time = t...

Call a method of session beans that deployed on the remote machine

I wrote a EJB session beans and deployed it on the GlassFish application server. i can call it easily with @EJB annotation from a local JSF web application but i dont know how to call it from a JSF web application that deployed on the remote machine (another machine). can i dot this with @EJB annotation and how ? ...

Session variables clearing on response.redirect ('page.aspx",false)

I have an webforms app that loses it's session variables on response.redirect. I've read Bertrand Le Roy's blog about this and still can't get it to work. The page works in production. However, when I try in the VS2k8 IDE, the session variables are there right before response.redirect and on the first line of the next page, the variabl...