Posts

Showing posts with the label Session

Can I Use Array_push On A SESSION Array In Php?

Answer : Yes, you can. But First argument should be an array. So, you must do it this way $_SESSION['names'] = array(); array_push($_SESSION['names'],$name); Personally I never use array_push as I see no sense in this function. And I just use $_SESSION['names'][] = $name; Try with if (!isset($_SESSION['names'])) { $_SESSION['names'] = array(); } array_push($_SESSION['names'],$name);

Can I Create A New Session In Another Tab Or Window In Google Chrome?

Answer : Currently, this is not possible. You can use multiple profiles in Google Chrome, though. Read the instructions here. Enable multiple accounts: https://www.google.com/accounts/MultipleSessions Then, create a bookmark(let) or a keyboard shortcut for each mailbox: https://mail.google.com/mail/u/0/#inbox https://mail.google.com/mail/u/1/#inbox Source: http://lifehacker.com/5733636/switch-between-multiple-gmail-accounts-with-a-url-hack MultiLogin is down from the google webstore, but there is an alternative (SessionBox) https://chrome.google.com/webstore/detail/sessionbox-beta/megbklhjamjbcafknkgmokldgolkdfig