Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How many ways you can delete a session variable ?

Answers were Sorted based on User's Feedback



How many ways you can delete a session variable ?..

Answer / prasad

two ways

Seesion_destroy
unset

Is This Answer Correct ?    28 Yes 1 No

How many ways you can delete a session variable ?..

Answer / chetan

session_destroy()
....// it will delete all session variables at once
unset
session_unregister()

Is This Answer Correct ?    4 Yes 0 No

How many ways you can delete a session variable ?..

Answer / anoop

The correct answer is 4 ways .
1 UNSET();
2 session_unset()
3 seesion_unregister()
4 session_destroy()

Is This Answer Correct ?    5 Yes 1 No

How many ways you can delete a session variable ?..

Answer / anuj kumar gupta

session_destroy() — Destroys all data registered to a session

session_unregister() — Unregister a global variable from the
current session

session_unset() — Free all session variables

If globals is on, you'll have to unset the
$_SESSION[varname] as well as the $varname.

Like:

unset($_SESSION[varname]);
unset($varname);

Is This Answer Correct ?    4 Yes 0 No

How many ways you can delete a session variable ?..

Answer / hemant gore

unset($_SESSION)
session_unset()
seesion_unregister()
session_destroy()

Is This Answer Correct ?    3 Yes 0 No

How many ways you can delete a session variable ?..

Answer / john suresh

only one way

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More PHP Interview Questions

What are the advantages of oops in php?

0 Answers  


•How to access crystal reports through PHP code?

1 Answers   Satyam,


What is the default session out time?

0 Answers  


Is empty java?

0 Answers  


what are the rules to be followed at the time of declaring a variable?,what is the purpose of var_dump()function in php,syntax of ternary operator()in php,difference between drop a table and truncate a table...

2 Answers  


How we load all classes that placed in different directory in one php file , means how to do auto load classes.

0 Answers  


What is get method in java?

0 Answers  


What is php data type?

0 Answers  


Can we override static method in php?

0 Answers  


Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?

0 Answers  


What is strlen php?

0 Answers  


What are the advantages and disadvantages of Cascading Style Sheets?

1 Answers  


Categories