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



Programming Languages Interview Questions
Questions Answers Views Company eMail

What is the difference between constant pointer and pointer to a constant. Give examples.

TCS,

4 12507

what is the output of the following program? main() { int c[]={2,8,3,4,4,6,7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf("%d",*c); ++q; } for(j=0;j<5;j++) { printf("%d",*p); ++p; } }

4 8351

what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }

7 11114

In the following control structure which is faster? 1.Switch 2.If-else and which consumes more memory?

4 7341

without selecting individually each field in Action Class from jsp,what is the best process to select as many as field at a time automatically from jsp page by using value object class.

1873

is it acceptable if we declare multiple exceptions in same overridden method.

2615

How to merge Action Form with Dyna Action Form in Struts.

2317

Which method protects back button to retrieve old value from previous page in Struts.

1864

will it allow to add same value in HashMap class.

2141

is try block possible without catch block?

3 5975

how do i add a column dynamically in a table by using java application?

2038

how do i create my own exception class which will restrict IO exception?

2748

what is best way to create a Thread class & why?

2166

how to avoid java script validation in client side validation?

2 4248

What should not contain a header file?

2 4800


Un-Answered Questions { Programming Languages }

What is activex control used for?

737


Are wordpress sites free?

166


What is list comprehension? Give an example.

1145


what is the architecture of Magento? What are the different versions of Magento?

5


What is the use of sizeof () in c?

1060


what is the difference between an OS(operating system) and Framework?

1999


Does godaddy support drupal?

106


Explain about operators in Ruby?

5


how to capitalise first letter of each word in a given string?

1932


What does the c preprocessor do?

1116


How to read, write and delete session in cakephp?

3


What language is a dll written in?

1023


4 down vote favorite share [g+] share [fb] share [tw] I am developing my site using server side sessions using redis as backend for saving the session. Now the issue which is bothering me is of user leaving the website without logging out. I mean user simply closes the browser which causes the cookie to be deleted. Now session of that user still exists on the server and will not be used again as new login requires creating a new session due to security reasons. To avoid the case where hacker steals the old cookie and use it after user login again with same old session id. In essence user leaves the website without explicitly logging out and his session will be deleted after certain time limit of inaccessibility. I am thinking time limit of 30-60 minutes. Also with every new request from user his cookie will also be updated to keep track of when the user last time accessed the site. But nowadays, people let site remain open for long time without accessing it. For example users open facebook and gmail in new tabs and forget about them for 2-3 hours and still they are not asked to login again. Is letting a 2-3 hours old cooke access the session secure? My concern is someone steals user cookie and use it 2-3 hours later. Thinking on this topic has also forced me to question how facebook manages security if user can use a session where they are not accessing it for long periods of time and still they remain logged in. Or is it not secure for me to keep logged in when am not accessing the site session for longer period of time? It can be the case also there is some pinging mechanism using which sites keep track of user having their site open in a browser and when browser closes they are notified and can work accordingly. My website is a social network and needs all those security and usage features which a social network may need. I am new to web security and web development in general and may be the case where my above questions may seem a little basic. If you feel that is the case kindly point to some good reference where I can read and find answers to my question.

2145


What is the iunknown interface?

1136


What is the difference between a list and a tuple?

924