Questions tagged as 'session'

1
answer

Is it correct to store a record to use during the process lifecycle in a session variable?

Hello, I have a web system, but it is super flawed ... I store ID's in hidden input, however, it is visible if you inspect element .. If I change the schedule_id to 1, it will update registry 1 instead of 26. Would it be best to stor...
asked by 29.07.2018 / 11:19
1
answer

How to do a session

I have a system that has a login page, but it only sees if there is that email and password that the user typed in the database and releases it to the main page. Now I needed to create a profile page for this user so the system needs to know...
asked by 13.04.2018 / 13:58
1
answer

Slow down file restricted file

I have a file in php proceso.php that receives information in looping via jquery and makes a request to another page with curl, this file does something around 4 to 5 thousand requests one by one, everything worked much more after I restricted a...
asked by 04.11.2017 / 05:36
1
answer

Save page status without refresh, after session expires

Here you can check if you are logged in public function isLogged() { if (isset($_SESSION['ccUser']) && !empty($_SESSION['ccUser'])) { if ($_SESSION['registro']) { $segundos = time() - $_SESSION['registro'];...
asked by 12.01.2018 / 20:11
1
answer

Session Error - Permission denied - sites on different ports

Hello, good afternoon. I have been trying to solve this problem for some time: I have a website that runs on the default port and an administrative system that runs on port 8080. (ex: link and link ) When in the same browser, I log in to t...
asked by 22.05.2017 / 20:11
1
answer

Php session is broken when at two sites on the same apache server

I have two sites that perform user authentication and soon after creating a session for it, both sites access the same database and therefore the user structure returned by the statement: $usuario = $this->db->get('usuarios').result();...
asked by 01.11.2016 / 17:56
2
answers

Control of modal appearance

I created a modal, which when clicking a click it asks if the person wants to register the email to receive more information. And this mod is in more of a link throughout the site. How could I control the appearance of it? Type if the person has...
asked by 27.10.2016 / 21:56
1
answer

Back 2 pages with php / create session of last accessed URL

I would like to know how to create a session of the last url accessed, why this: I have a login system on the site that if the person clicks buy in the product and is not logged in, it is directed to the login page, after login, it is redirected...
asked by 07.03.2016 / 13:28
1
answer

Session variable "balance" does not update

I have a problem that has never happened to me before. My balance session variable does not update on the .php page. It is updated in the database after an UPDATE. But the page is only updated if I log out and re-enter. What will be the problem?...
asked by 26.09.2015 / 19:19
1
answer

Problem with PHP in Script checking Session

I have a form but it is hidden only when you click on a button in the nav called this function: <script> function verifLog(){ <?php session_start(); if (isset($_SESSION['user'])){ echo "<script> document...
asked by 03.07.2015 / 00:47