Tag Archives: session
PHP MySQL race condition session_set_save_handler
I have written a simple session_set_save_handler using a MySQL innoDB table as the storage backend. MySQL is 5.5.
Code looks like so (très simplifiée, but hopefully illustrates the flow of code), I am using RedBean ORM for interacting with the… Continuer la lecture
le chemin du fichier des structures ajax et sessions php
Je travaille sur quelques projets qui est une sorte de partout. Mon fichier d'affichage est index.php. From there I make calls via jquery to ajax functions which then call php file that gets and receives user data… Continuer la lecture
Bypassing Captcha with curl in PHP
I am trying to automate the login progress on a captcha protected page. I am using Death By Captcha to translate the image into text and it seems to be working well. I am using curl to load the login… Continuer la lecture
insert $_SESSION['MM_Username'] in to log message
First post here – I’ve been learning php and mysql for a month or so now.
I’m trying to post the session ‘MM_Username’ into log notes.
so it reads ‘archived by username’
I thought that if I set the lognote… Continuer la lecture
PHP Session Expiration – When does it refresh?
I’m using Zend with a session expiration set to 1,800 secondes. I was wondering if this session expiration time refreshes back to 1,800 seconds every time I make a request from the browser to the server on behalf of the… Continuer la lecture
an empty page when when the user enter wrong info in check log in
I’ve this code to check the information that the user entered to log in , when the info are correct it supposed to show the next page ,
it its not it suppose to show a page that said “Pas… Continuer la lecture
php math function results wrong output
I grabbed value of silver from yahoo finance and added 0.10 to the current value.. it is showing right result..
$yql_base_url = "http://query.yahooapis.com/v1/public/yql?";
$params = array(
'q' => 'select * from html where url=@url and xpath=@xpath;',
'url' => 'http://finance.yahoo.com/q?s=XAGUSD%3DX&ql=1',
'xpath' …
Afficher nom d'utilisateur en haut de la page
I’m creating a website for school and I would like to show the username of the person who is logged in at the top of my page…
Now I’m trying with the following code:
Welkom …Déconnexion.
Here is the login.class.php Continuer la lecture
Why difference in localhost vs 127.0.0.1 regarding SESSIONS
I’m wondering why there’s a difference in these two for sessions? If i have a login form and it passes sessions to a page (à savoir: settings.php). Si je dois localhost/settings.php… the session would work, if I go to a Continuer la lecture
How to serialize/save a DOMElement in $_SESSION?
I’m pretty new to PHP, JUGEMENT, and the PHP DOM implementation. What I’m trying to do is save the root element of the DOMDocument dans un $_SESSION… variable so I can access it and modify it on subsequent page loads. Continuer la lecture





