Tag Archives: sessão

PHP MySQL condição de corrida 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 (very simplified, but hopefully illustrates the flow of code), I am using RedBean ORM for interacting with theContinue lendo

Tagged , , , , | Deixe um comentário

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 dataContinue lendo

Tagged , , , , | Deixe um comentário

Ignorando captcha com cURL em 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 loginContinue lendo

Tagged , , , , | Deixe um comentário

insert $_SESSION['MM_Username'] in to log message

First post hereI’ve been learning php and mysql for a month or so now.
I’m trying to post the sessionMM_Usernameinto log notes.
so it readsarchived by username
I thought that if I set the lognoteContinue lendo

Tagged , , , | Deixe um comentário

PHP Session ExpirationWhen 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 theContinue lendo

Tagged , , | Deixe um comentário

uma página vazia quando quando o usuário inserir informações erradas no registro de check-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 “Não… Continue lendo

Tagged , , | 1 Como

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'  

Continue lendo

Tagged , , | Deixe um comentário

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 (ie: settings.php). If i have localhost/settings.php… the session would work, if I go to a Continue lendo

Tagged , , | Deixe um comentário

How to serialize/save a DOMElement in $_SESSION?

Eu sou muito novo para PHP, JULGAMENTO, eo PHP DOM aplicação. What I’m trying to do is save the root element of the DOMDocument em uma $_SESSION… variable so I can access it and modify it on subsequent page loads. Continue lendo

Tagged , , , , | Deixe um comentário
26 páginas