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...


1.Where are the sessions storing ?
2.What are the contents of a session file ?
3.If the server is loaded with too many session files there
is a possibility of server crash. How can we solve this
issue?
4. How does php server identify that the particular session
belongs to particular user ? For ex: If two users A and B
logged from different machine, separate session files (say
1 and 2) will be created in the server. But how the php
knows that 1 belongs to A and 2 belongs to B ?

Answers were Sorted based on User's Feedback



1.Where are the sessions storing ? 2.What are the contents of a session file ? 3.If the server is..

Answer / binoyav

1. In PHP server under session_save_path
2. The file contains the session name and data type of the
value, length and session value separated with | and :

Is This Answer Correct ?    3 Yes 0 No

1.Where are the sessions storing ? 2.What are the contents of a session file ? 3.If the server is..

Answer / mahesh

#1) Session serv path / session ina file

#4) When A user login in one system and in perticular
browser means, session id set for A user with browser type
and system ip address. similarly B user had separate id. So
system wont get confused.

If A user get logged in the one browser at one system means,
A user cant log in with another username in same browser in
same same system. Because first username is already logged
in... You can logged in different browser in same system.
If you had doubt means try it..

#3) There is no relation between server crash and session
files upload. Session will timed out according to session
time set.

Is This Answer Correct ?    0 Yes 0 No

1.Where are the sessions storing ? 2.What are the contents of a session file ? 3.If the server is..

Answer / sudhir sharma

In PHP server under session_save_path,
When user login a UID generate and it will passing into
client cookies if user cookies is turned on otherwise the
session can tracked by passing PHPSESSID as a get variable
to every pages.

2-The file contains the session name and data type of the
value, length and session time separated with | and :

3-There is no matter of server crash because of when the
user left the website the session became expired.So there is
no matter of server is loaded with session files.

4-By User Identification id (UID) generated according to
session generate..

Is This Answer Correct ?    0 Yes 0 No

1.Where are the sessions storing ? 2.What are the contents of a session file ? 3.If the server is..

Answer / dharmaraj.a

4. When session_start() a session id will be generated and
it will be placed in a client machine in a cookie. If
suppose the cookie is disabled in client machine then the
session id will send through the url.

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More PHP Interview Questions

What does the arrow mean in php?

0 Answers  


What are the correct and the most two common way to start and finish a PHP block of code?

0 Answers  


What is the difference between InnoDB and MyIsam

1 Answers   Brain Technosys, IBM, TCS, TLI Software, Wipro,


Which of the following represents the proper way to set a session variable? Answer: a. $_SESSION['foo'] = 'bar'; b. session_start(); c. session_set_save_handler ('myopen', 'myclose', 'myread', 'mywrite', 'mydelete', 'mygarbage'); d. $foo = $_SESSION['foo']; 2.When administering MySQL, you should make the data directory accessible via the operating system 3.which statement can be used to determine how the optimizer resolves a query

9 Answers   Cybercom, TCS,


What is mysql_fetch_row?

0 Answers  


Steps for the payment gateway processing?

0 Answers  


I just installed php 5.3.1 in my linux server and now my old work which i used to write with tags is not working at all.. Please help me out.. How can i resolve this??

1 Answers  


How to terminate the execution of a script in PHP?

0 Answers  


What’s the difference between sort(), assort() and ksort? Under what circumstances would you use each of these?

2 Answers  


how to include external php file in to html page?

8 Answers   Eccentric Infotech,


does PHP support foreign key and Rollback?yes or not.if not then why. how will you done these concept in php?

1 Answers   Avanigoradia, Primus Global,


What is the difference between myisam and innodb?

0 Answers  


Categories