PhpTim Posted June 6, 2009 Share Posted June 6, 2009 I have a login. When logged in for each page we will have 5 peoples of data for that user. Which would be a more effective approach. Scenario A Once someone logs in and 5 Sessions are set. Access the sessions from there on in. Scenario B Once someone logs in and 1 Session the GUID is set. Access the information from a select using the GUID. Things I am looking for is efficiency. Link to comment https://forums.phpfreaks.com/topic/161198-consistant-sessions-access-verses-consistant-database-access/ Share on other sites More sharing options...
Ken2k7 Posted June 7, 2009 Share Posted June 7, 2009 Depends on if the information ever changes. If the information is constantly changing, then you probably have to use Scenario B. Otherwise, if the data is static, Scenario A would be best. Link to comment https://forums.phpfreaks.com/topic/161198-consistant-sessions-access-verses-consistant-database-access/#findComment-850739 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.