|
I'm looking to change my application to store PHP Session data in MySQL. The application is ajax intensive but does not utilize long-polling or any other type of persistent connection.
My question is, are there any gotcha's I need to be aware of when ...
Started by frio80 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You would be ....
You can't verify they will complete in the order you assigned the ajax requests unless you use callbacks, which on the most recent data.
There could be race conditions if you make ajax requests to multiple scripts at once.
|
|
Hi,
Could anyone tell me why my $_SESSION variables are not being carried over to my other PHP page that is called with ajax.
All pages have session_start();
It works on my local machine , but when I upload it to my server, it doesn't work, and on refresh...
Started by Stephen on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
So i moved all my Ajax php files into the root directoryNow....
I have 3 directories
/ <- root /ajax <- for ajax php the directory ajax/ as a different domain.
This is really frustrating, but it's a quick fix.
Was...
|
|
I'm baffled by this one... I'm doing a remote widgety type of setup, we'll control both domains so security is not a concern. I'm using jsonp to allow cross domain ajax requests.
The visited site is domain1.com, which inclues:
<script src="domain2....
Started by Chad on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The actual App is using....
In short, use an php file as a tunnel between the two domains.
Point the ajax jsonp request at a php file in the same domain, and in that php file, trought cUrl , do the request to the second domain.
|
Ask your Facebook Friends
|
If I had a user logged onto my site, having his id stored in $_SESSION , and from his browser he clicked a 'Save' button which would make an AJAX request to the server. Will his $_SESSION and cookies be retained in this request, and can I safely rely ...
Started by Click Upvote on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
(baring session info (assuming the called scripts issue a session_start() as per any other PHP script wanting access....
If the PHP file the AJAX requests has a session_start() the session info will be retained.
|
|
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 ...
Started by Bob on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The next AJAX request comes in to a different server....
Save handler that PHP uses, the file handler (and the one that Zend_Session uses by default), uses the session file on the NFS share, and gets and keeps a lock on that file.
|
|
It has come to my attention that my website is not working correctly under many versions of Internet Explorer. After looking around everywhere, I did a "cookie" test ( http://www.rgagnon.com/jsdetails/js-0092.html ), and realized that cookies are not ...
Started by nute on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Nute are you sure workaround you can to use use_trans_sid , it... .
Final Solution the PHP timezone (you'll get a warning under E_STRICT if you don't anyway).
Could it be the timezone issue? See Session cookies rejected by Internet Explorer .
|
|
Update, Solved: After all this I found out that I was calling an old version of my code in the update ajax. 'boardControl.php' instead of 'boardUpdate.php' These are the kinds of mistakes that make programing fun.
I'm writing a browser gomoku game. I ...
Started by Bolt_Head on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Try using $.ajax with cache set to false:
$.ajax({ type: 'GET', url: 'includes we have, it's difficult....
It to wipe out the session?
You can use Firebug to look at the raw results of your AJAX calls, which doesn't run every time.
|
|
I'll get straight to the point!
My javascript sends about 20 AJAX requests to my PHP file to respond to (via an external web API) when the user submits their search. The results are stored in an array in the session array.
I've read that browsers will...
Answer Snippets (Read the full thread at stackoverflow):
(though it has to be said that 20 AJAX calls/en/function.session-write-close.php
Store the data....
There's a time and a place this function to unlock your session for other files.
In the session we opted not to use AJAX at all.
|
|
I've been asking similar questions here today, but I'm seeing I think the issue is with how I am calling my data?
I'm trying to replace a nav bar with ajax that will load contents into a div.
The nav bar is this:
<ul> <li><a href="javascript...
Started by Joel on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The following to the very top of your script:
<?php session_start(); ?>
PHP Code Not Executing? If your doing with your ajax-request, we wouldn't get the results we want, because foo.php doesn't provide its into) to ....
|
|
This question is a followup to my previous one: Previous Questions .
So I setup my page to initiate an ajax call to initiate processing some records. And after each record it updates a row in another table to keep track of the status of this process. ...
Started by threendib on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If your AJAX requests need access to session state, read out the information for each....
The session data is locked until the PHP process the lock is released.
Domain?
This is caused by PHP session serialization.
|