Archivo de la etiqueta: sesión
PHP MySQL session_set_save_handler condición de carrera
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 (very simplified, but hopefully illustrates the flow of code), I am using RedBean ORM for interacting with the… Sigue leyendo
file path structures ajax and php sessions
I am working on a projects that is kind of all over the place. My display file is index.php. From there I make calls via jquery to ajax functions which then call php file that gets and receives user data… Sigue leyendo
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… Sigue leyendo
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… Sigue leyendo
PHP Session Expiration – When does it refresh?
I’m using Zend with a session expiration set to 1,800 segundo. 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… Sigue leyendo
una página en blanco cuando cuando el usuario introduzca información incorrecta en el registro de check-in
Tengo este código para verificar la información proporcionada por el usuario para iniciar sesión , cuando la información es correcta se supone que muestra la página siguiente ,
que no suponga su TI para mostrar una página que dice “No… Sigue leyendo
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' …
Show username at the top of the 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 …Cerrar sesión.
Here is the login.class.php Sigue leyendo
¿Por qué la diferencia en localhost vs 127.0.0.1 sobre SESIONES
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 (es decir,: settings.php). If i have localhost/settings.php… the session would work, if I go to a Sigue leyendo
How to serialize/save a DOMElement in $_SESSION?
I’m pretty new to PHP, SENTENCIA, and the PHP DOM implementation. What I’m trying to do is save the root element of the DOMDocument en un $_SESSION… variable so I can access it and modify it on subsequent page loads. Sigue leyendo





