Questions tagged as 'session'

1
answer

Error listing items using JSON and PHP

I am inserting items into a list through a SESSION in PHP, these items will be read on another page using JSON, but it is giving error and I am not able to solve. session_start(); if(isset($_POST['Cadastrar'])){ $Nome = $_POST['Nom...
asked by 30.09.2016 / 00:42
2
answers

Automatically log in to hybrid applications?

I made a login system that searches for user in bd, I am new to mobile development, and wanted a light (idea) on how to login automatically after first access. Same in whatsapp or face that you enter your login data once and then it logs in alon...
asked by 21.11.2016 / 16:38
1
answer

Problem with session Codeigniter error

I am having a small login problem with codeigniter, after logging in it does not transfer the data through the session. I did the following tests: I printed the session on the controler [ok, printed correct data] I printed the session in an...
asked by 16.12.2015 / 03:12
1
answer

Keep session after closing browser using PHP

I'm making a cart using session , can you increase the time of session ? Below is the class I created for my shopping cart. class carrinhocompra{ public function __construct(){ if(!isset($_SESSION['carrinho'])){ $_SE...
asked by 28.07.2015 / 02:43
1
answer

Keep database connection open in PHP

When we use a PHP application with Firebird database, we use the ibase_connect() methods to open the connection to the database and ibase_close() to close this connection. If the connection is opened and not closed using the last c...
asked by 11.12.2015 / 01:57
1
answer

How to set a timeout for a given action in Java?

I would like to set a timeout for a given action on JSP pages, which should work with the following conditions below: When I click on a button eg "Traveling" , the page should somehow save start time and end time and say how long it takes...
asked by 23.06.2015 / 22:30
1
answer

Update an asp section variable without refreshing the page

I'm breaking my head to try to solve this problem, but without success ... I have a virtual store created for another programmer who disappeared. To vary code is undocumented. To calculate the freight in the shopping cart it calls another...
asked by 27.03.2015 / 05:44
2
answers

Use data saved in a session

I modified my question because I was able to solve the session problem. But now I have another doubt. I have this code in the Controller to capture the data passed by parameter and save them in Session: public function SetImageAndColor($client...
asked by 25.03.2015 / 14:17
1
answer

Session is recreated automatically, with a field inside [closed]

I have a class of Sessions in which every time I instantiate it, it automatically logs in. When in another file I do I destroy the session through a method called doLogout I see that it automatically deletes my session as expected but...
asked by 27.11.2014 / 13:49
2
answers

Upload progress with jquery or php

I use a script to upload images with PHP and JQUERY and would like to display the percentage of progress while it is uploading, how can I do that? Thank you ..     
asked by 27.06.2014 / 18:38