Questions tagged as 'session'

9
answers

Why using Sessions is not a good alternative in authentication?

I see some discussions about the use of "Sessions" not being scalable, but as I have not experience in projects large enough to realize this, I do not know how it works.     
asked by 30.01.2014 / 13:00
3
answers

How does the session in web browsers work?

A session allows, for example, that I allow the user to remain logged, saving the information of who is logged in (user_id, for example). I think it's something more elaborate than cookies , otherwise I could modify my cookie "user_id" from...
asked by 25.07.2014 / 18:07
2
answers

What is the difference, in practice, between Session and Application?

I'm studying about Web Technologies , and during my class a topic about concepts involving Session and Application came up. The technology covered during class was C# . I did not quite understand the differences between them...
asked by 27.11.2015 / 16:35
2
answers

What do I save in a login session?

I am developing a login system in PHP and MySQL for an administration panel, and I have seen many "secure" login systems where they store the user login or password in the session, when they are not both or until all the user logged in data....
asked by 02.11.2014 / 13:32
4
answers

Login in PHP with permission levels

I have a problem with my code to separate the logins. I want when a login with Rank = 1 is entered it redirects to a page, and when Rank is = 0 go to another page. I tried to do but I did not have a result because he always...
asked by 18.04.2014 / 12:25
2
answers

Is it bad to use the default PHP session engine?

I realize that many frameworks , like Codeigniter and Laravel 3 and 4 use a proprietary session storage mechanism. They do not use the default PHP mechanism (Variable $_SESSION and session_start , among other things). And when I...
asked by 26.01.2016 / 14:15
3
answers

Session limitation for saving data

I have a slow query in Oracle to list all accesses for a user, so I thought of writing the result to a Session , the average of records returned is 600, with%? Would you have any other better way to save this data?     
asked by 30.09.2015 / 21:29
4
answers

What technique do you use to keep fields in a form filled or selected after $ _POST []? [duplicate]

I'm developing a real estate system and would like to ask how can I keep data for a form such as inputs , selects and checkbox selected after giving $_POST on the form. I do not know how to store this data for all...
asked by 18.11.2015 / 18:06
2
answers

How to destroy a specific session?

It's as follows: I have an application / game that uses sessions to memorize the data that the users have chosen. Whenever the user restarts the game I need to clear the information, so I was perfectly using the session_destroy(); Un...
asked by 03.09.2014 / 20:28
4
answers

Another option to use @ in PHP?

I do not feel very comfortable having to use @ before some variables and sessions when I make conditions, to avoid Unexpected Index error that happens when the variable or session was not initialized previously. I wanted to know...
asked by 12.05.2015 / 16:29