Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

CLI sessions in ajax

General discussions related to php

Moderators: macek, egami, gesf

CLI sessions in ajax

Postby angelll123 » Sat Feb 08, 2014 12:05 pm

A form sends via AJAX username and password to a script, which returns 0 or 1 (if username/pass is present or not). In case of 1 form page is reloaded and sensitive info is shown. I tried to access this info with CLI script, but get stucked with sessions - appears that if AJAX php script finds username/pass is ok it sends some kind of session variable and when page reloads it goes to the right part. Sadly I cannot have session support in CLI... I want to make a script which makes a copy of this data few times a day (attached to cron). Any ideas?
angelll123
New php-forum User
New php-forum User
 
Posts: 6
Joined: Wed Mar 30, 2011 5:52 am

Re: CLI sessions in ajax

Postby Neldos01 » Sun Feb 09, 2014 9:53 pm

Nice post!
Neldos01
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sun Feb 09, 2014 9:50 pm


Return to PHP General

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron