PHP Interview Questions
Questions Answers Views Company eMail

how to store date to database


5 4832

Actually am working in existing project which is developed in .net, am converting the .net into php code. am facing problem after uploading the .php in server. amgetting the error message like "The page cannot be found" but its working perfectly in local host

2 1843

how to select the multiple data in selection button

xasis technologies,

1 2291

How to upload and play video in Php when u r in localhost?


3 8371

how to make website package setup like desktop software setup ... that front end and backend can include in setup like single package...?


how to register website in internet

2 2023

what is code for email sending through localhost pc..?

2 2935

m new to xampp i want to configure file server in xampp... is it possible ??? if so help me....


what is Abbreviavion of PHP?

6 3293

I am working in VFP with no knowledge of web programming.I want to learn web database programmin. Can I choose PHP and MYSQL for that?

2 2444

hai plz inform me specific books fo0r paper1,paper2 and paper 3 of group2 examination... plz giv me at the earliest......


1 1485

i start a new session with : session_start(); then i set some session variable like this : $_SESSION['name']=$_POST['name'];\ and some another variables. at bottom of page i set header to diffrent page : header('location: index.php'); exit(); now in new page (index.php i can't access to my session variables, like $_SESSION['name']) what's wrong ? thanks. here is my files : a.php ======================================== session_start(); require (''); if(isset($_POST)) foreach($_POST as $v=>$k) { $items[$v]=$k; } $sql="SELECT * FROM members WHERE username='{$items['user']}' AND pass=MD5('{$items['Password']}') "; $res=mysql_query($sql); $row=mysql_fetch_assoc($res); if($row['username']) { $_SESSION['type']=$row['type']; $_SESSION['name']=$row['name']; $_SESSION['family']=$row['family']; $_SESSION['username']=$row['username']; $_SESSION['date']=$row['date']; } header('location: admin.php'); exit(); ====================================== admin.php ===================================== . . . =================================

5 3932

Make a "dynamic drop down list" with using only PHP,HTML and MySQL..

2 3468

how will i set pagination ?

2 2250

Is md5() is breakable if yes than how?

1 2020

Post New PHP Questions

Un-Answered Questions { PHP }

what is mean by portal


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.


What are Routines?


how can i develop forum code? any one pleale help me on this question


I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable


why did u want to leave your past organisation?


How I can control asset documents without GR/IR?


Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer


iam mca post graduate in 2010 not getting job in JAVA so iam looking for carear in php as market demand is high so it is best option to try for php or not


what is benefit of magento?


What is different between software and app


write a note on Testing the web site


hello all, I need some sample placement papers in lion bridge.. can anyone help me?


What is Different between Joomla And Magento?