0
голосов
1ответов
81 просмотров

2 phase ajax-based authentication

We have an ajax application that requires two steps, first user enters user name and password, then if it's correct, a challange question is presented. what's the best practice to manage the process? I plan to generate a temp session id after the first phase to be used in the second phase. And ...

1
голосов
1ответов
348 просмотров

How can I use multidimensional arrays in PHP with MySQL-based sessions?

So I started using MySQL-based sessions with session_module_name("user"); and I love it, and I might as well because I have to. The only thing I'm missing are my beloved multidimensional arrays, and I'm at a juncture where they are most desired. How can I still use them, or is it a lost cause?

0
голосов
2ответов
321 просмотров

how twitter passes query variables?

I notice that when I browse pages in Twitter. Instead of having some like twitter.com/home.php?var1=2&asjfaj...etc. (the most common way), the link is just Twitter.com/#home or twitter.com/inbox or twitter.com/followers. my guess is, they use sessions variables to pass information acros...

3
голосов
3ответов
2413 просмотров

Ajax, PHP, and Sessions issue

I have a PHP application that uses Zend Framework, jQuery's ajax, and Zend_Session. This application has been around for about 7 months and working the way it should. When the application initializes after the user logs in, about 10 ajax requests are fired off to load up relevant data to a dashbo...

1
голосов
4ответов
4311 просмотров

PHP Screen Scraping and Sessions

Ok still new to the screen scraping thing. I've managed to log into the site I need but now how do I redirect to another page? After I login I'm trying to do another GET request on the page that I need but it has a redirect on it that takes me back to the login page. So I'm thinking the SESSIO...

4
голосов
2ответов
5423 просмотров

python: interact with the session in cgi scripts

Can python cgi scripts write and read data to the session? If so how? Is there a high-level API or must I roll my own classes?

0
голосов
4ответов
917 просмотров

Unique entries in an array

I have the following that stores the previous 10 URL's into a session: function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SE...

52
голосов
1ответов
29880 просмотров

Pros and Cons of Sticky Session / Session Affinity load blancing strategy?

One approach to high scalability is to use network load balancing to split processing load between several servers. One challenge that this approach presents is where servers are state aware - storing user state in a "session". One solution to this problem is "sticky session" (aka "session af...

6
голосов
4ответов
2521 просмотров

django tracking recent online users

Is there any way to track active users in django? I have seen a few online solutions to the problem: http://mpcabd.igeex.biz/get-online-users-in-django/ being one of those. But it seems rather odd to modify the model structure just to solve this simple problem. I would like to know if there is...

0
голосов
1ответов
384 просмотров

Visual Studio ASP.NET MVC Save Solution Session End?

Every now and then when I am running/debugging an ASP.NET MVC website through Visual Studio and if I am changing some CSS or HTML in a View while the project is still running, the Session will drop intermittently. I have confirmed this in the Global.asax adding a Session_End method and setting a...

8
голосов
2ответов
5177 просмотров

Storing Session Variables in Lift Scala

I am trying to store a session variable and then use it to modify the menu in Boot.scala. Here is how I am storing the variable in a snippet: object sessionUserType extends SessionVar[String](null) def list (xhtml : NodeSeq) : NodeSeq = { Helpers.bind("sendTo", xhtml, ...

0
голосов
3ответов
4670 просмотров

Trouble logging out of a Facebook connect site and destroying sessions

I can't seem to get a facebook connect app that I am building to log the user out (sorry no url as it's still in dev). Each time the user clicks a link with the class "logout" the following JS runs which seems to work and even shows the FB modal stating the user has been logged out. $(document)....

53
голосов
9ответов
199240 просмотров

How to check if a user is logged-in in php?

I'm pretty new to php and I am trying to figure out how to use sessions to check and see if a user is logged into a website so that they would have authorization to access specific pages. Is this something that is complicated or is it because I am a noob that I can't figure it out? Thanks for...

37
голосов
3ответов
26168 просмотров

IIS Session Timeout vs ASP.NET Session Timeout

In IIS 6 (and other versions too afaik), there is a Session Timeout setting in Properties -> Home Directory Tab -> Configuration button -> Options tab. Looks like this: And in the ASP.NET web.config there is a SessionState setting, looks like this: <system.web> <sessionS...

4
голосов
4ответов
943 просмотров

Caching data vs. writing in memory table

Which would be the best way to achieve a fast hash / session storage with one of these three ways? Way 1: Create a memory table in MySQL that stores a hash and a timestamp when the entry was created. A MySQL event automatically deletes all entries older than 20 minutes. This should be pretty fas...

0
голосов
1ответов
372 просмотров

How to enable session only in specific view and disable it on others in ASP.NET MVC

i need to use session only on a few views in my MVC project. These views are not visible to web crawlers. I use cookieless="AutoDetect" so web-crawles(and users with cookies disabled) gets ugly url from IIS( ie "(S(hkec1uq1onbt0xafixedjc45))/en/home.mvc") even on pages that doesn't need session. ...

0
голосов
1ответов
1572 просмотров

Best method to remove session handled by Session Proxy pattern

I would like to use Proxy pattern for Session handling. In my session proxy class I have something like that: public static class SessionProxy { private const string ThemeNameSessionName = "ThemeName"; private const string PasswordExpirationDaysSessionNam = "PasswordExpirationDays"; ...

0
голосов
2ответов
147 просмотров

Saving the State of a System

A very flowery title indeed. I have a PHP web application that is in the form of a web based wizard. A user can run through the wizard and select options, run process (DB queries) etc. They can go backwards and forwards and run process again and again. I am trying to work out how to best save t...

2
голосов
1ответов
414 просмотров

MySQL call a stored procedure every x minutes

Is there a way in MySQL to call a stored procedure from within SQL every x minutes? I want to use this in a session-environment, where the database keeps track of all the sessions and automatically deletes sessions older than x minutes.

1
голосов
3ответов
3702 просмотров

Detecting browser closure from flex application

I need to detect browser/tab closure from within a flex application in order to delete the session information in the server. I'm familiar with JavaScript events but I was wandering if there is an event in flex for application unload or something of that sort ...

0
голосов
1ответов
404 просмотров

asking the container to notify your application whenever a session is about to timeout in Java

Which method(s) can be used to ask the container to notify your application whenever a session is about to timeout?(choose all that apply) A. HttpSessionListener.sessionDestroyed -- correct B. HttpSessionBindingListener.valueBound C. HttpSessionBindingListener.valueUnbound -...

2
голосов
6ответов
12770 просмотров

Check whether user is logged in or not

I am doing a web-application using PHP for job searching. I have one query; when user is not logged in and wants to apply for the job given by clicking 'apply' button, he redirects to the login page. If the user is logged in when clicking, he should get directly to the application page. I'm not ...

2
голосов
2ответов
818 просмотров

how to use state server for session in asp.net 2.0

I need to know the procedure to use asp.net session state server for session. Please help.

127
голосов
4ответов
55488 просмотров

How do PHP sessions work? (not "how are they used?")

Session files are usually stored in, say, /tmp/ on the server, and named sess_{session_id}. I have been looking at the contents and cannot figure out how they really work. Fetching the variable name and and content from the file is easy. But how does PHP know what session belongs to whom? The s...

0
голосов
1ответов
164 просмотров

securing sessions

I know SO isn't traditionally used this way (or maybe it is), but I've been learning about webapp security and was thinking it would be nice and encouraging to hear from SO experts what they think of this article (I'm reading it now, it's on session security). http://carsonified.com/blog/dev/ho...

1
голосов
2ответов
1748 просмотров

Session Id Changing Randomly

I have a simple ASP.NET MVC application. When the first action method is run it stores some data in the Session variable. On the resulting view I have a jquery ajax call triggered by a button to another action method. When I click the button a different session id is used at the server side, it'...

0
голосов
3ответов
1355 просмотров

PHP Session empty in one computer, but not another. Weird!

The problem is that I have a PHP script (A) that does signup, authorize Twitter, then the twitter calls back to a return PHP script (B). In script (A), I set some $_SESSION variables, and in script (B) I will get it. Very straight foward. I have tested it on my computersss, and it all works. I ...

3
голосов
2ответов
596 просмотров

Why does sharing PHP sessions between concurrently open pages seem to work in FF, but not IE or Chrome?

EDIT I just realized that I must have had a massive brain fart while writing the abbreviated code sample. See, I'm using smarty. Thus, I'm actually already using Kips's solution, because smarty displays after the session is saved I've been working on implementing a resource manager (for conden...

5
голосов
5ответов
3385 просмотров

How to access same Session in two websites?

I need to know how to access a session set by one website or web application in another web application. For example I have logged in gmail.com in firefox tab and then I opened orkut.com in a different tab and here I don't have to log in. I need to access or share same user session in two diffe...

40
голосов
1ответов
41525 просмотров

Asp.Net MVC OnSessionStart event

I have found this thread which describes a very interesting OnSessionStart event, but I am unable to "hook" it up (whatever it means) to my global.asax.cs. I am also unsuccessful while searching the web for it. So could someone please explain to me, if the event really exists in asp.net mvc, wher...