Questions tagged as 'session'

3
answers

Error using $ _SESSION [] with unserialize: "expects parameter 1 to be string"

I need help finding an error. So it looks like a BOM signature is popping up before session_start() . I have already searched all files (for Notepad++ ) and all are utf-8 sem BOM . The structure of my pages is like this:...
asked by 08.04.2016 / 21:51
1
answer

Entity Framework needs Session and HttpContext?

I watched some videos about Entity and saw two different versions, in a first it was something simple and straightforward (I believe the raw form of Entity), where it only instantiated the context of the bank and applied the add, : usin...
asked by 27.01.2016 / 01:48
1
answer

PHP - Setting SESSION time in already defined functions

I need to set the SESSION time of my site, which I assumed from another developer. Session definitions are used from a ready file, session.php Follow the code for this file: <?php // classe para gerenciar sessão Class Session extend...
asked by 12.02.2016 / 14:49
1
answer

PHP and Javascript - Storage of checkbox value chosen (in session)

I have some checkboxes on my page. They would be campaign choices. It follows the code of the table where they are arranged (lines of three): <table style="font-family: Trebuchet MS; font-size: 20px" align="center"> <tr> <td>...
asked by 26.10.2015 / 14:39
2
answers

What is the logic of a shopping cart?

I'm learning programming and want to try to make a shopping cart system in PHP that adds the products to the cart and finishes the order. From what I've seen, it looks like this type of system uses muito of the array multidimens...
asked by 13.08.2015 / 17:55
1
answer

Problems with tokens saved in session?

I'm developing an application in php and in the authentication part I have the following code: public function chamaApi(){ // chamada na api via curl $profile = json_decode($response); if($profile->erro...
asked by 18.10.2015 / 03:00
2
answers

Codeigniter, is Session class safe?

Codeigniter has its own class for Session, that is, it does not use the native Sessions of PHP. Note: The Session class does not use native PHP sessions. It generates its own session data, offering more flexibility for developers. You ca...
asked by 14.04.2015 / 19:42
1
answer

Sessions on a login system

I made a login system in PHP where, after authentication, I go back to the index.php page. So far so good, the problem is that when I redirect the user to index.php again, he asks me for the login data. Does anyone know what...
asked by 23.10.2014 / 02:05
1
answer

Variable in Ajax request

Code to receive numeroCartao of user via $_Session and show all information about it. And from here I can delete this user via AJAX. In this section of the code I can see the array containing all user data, however in the pro...
asked by 01.07.2014 / 03:08
1
answer

Bottle: accessing the same session on different Canister devices

Hello, I'm developing a project for the study character and I'm having a big problem. I'm using: astroid == 2.0.4 bottle == 0.12.13 canister == 1.5.1 colorama == 0.4.0 cymysql == 0.9.12 Cython == 0.29 isort == 4.3.4 lazy-obj...
asked by 10.12.2018 / 03:07