<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Java Interview Questions &#187; Session Interview Questions</title>
	<atom:link href="http://www.bestjavainterviewquestions.com/category/session-interview-questions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bestjavainterviewquestions.com</link>
	<description>Java Interview Questions &#124; Core Java Interview Questions &#124; Advanced Java Interview Questions &#124; EJB Interview Questions &#124; J2EE Interview Questions &#124; Hibernate Interview Questions</description>
	<lastBuildDate>Fri, 30 Jul 2010 06:00:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Define Session Hijacking</title>
		<link>http://www.bestjavainterviewquestions.com/define-session-hijacking-3/</link>
		<comments>http://www.bestjavainterviewquestions.com/define-session-hijacking-3/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 17:21:17 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Session Interview Questions]]></category>
		<category><![CDATA[session hijacking]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=263</guid>
		<description><![CDATA[Question: What is session hijacking? Answer: If you application is not very secure then it is possible to get the access of system after acquiring or generating the authentication information. Session hijacking refers to the act of taking control of a user session after successfully obtaining or generating an authentication session ID. It involves an [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Question: What is session hijacking?<br />
Answer:</strong> If you application is not very secure then it is possible to get the access of system after acquiring or generating the authentication information. Session hijacking refers to the act of taking control of a user session after successfully obtaining or generating an authentication session ID. It involves an attacker using captured, brute forced or reverse-engineered session IDs to get a control of a legitimate user&#8217;s Web application session while that session is still in progress.</p>
<h2  class="related_post_title">Related Post</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/define-session-hijacking/" title="Define Session Hijacking"><img src="Array" alt="Define Session Hijacking" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/define-session-hijacking-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between session.save() , session.saveOrUpdate() and session.persist()</title>
		<link>http://www.bestjavainterviewquestions.com/difference-between-sessionsave-sessionsaveorupdate-and-sessionpersist-2/</link>
		<comments>http://www.bestjavainterviewquestions.com/difference-between-sessionsave-sessionsaveorupdate-and-sessionpersist-2/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 17:20:07 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Session Interview Questions]]></category>
		<category><![CDATA[session.save()]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=231</guid>
		<description><![CDATA[Q) Difference between session.save() , session.saveOrUpdate() and session.persist()? A) &#8211;&#62; session.save() : Save does an insert and will fail if the primary key is already persistent. &#8211;&#62; session.saveOrUpdate() : saveOrUpdate does a select first to determine if it needs to do an insert or an update. Insert data if primary key not exist otherwise update [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Q) Difference between session.save() , session.saveOrUpdate() and session.persist()?<br />
A)</strong><br />
<strong>&#8211;&gt; </strong>session.save() : Save does an insert and will fail if the primary key is already persistent.</p>
<p><strong>&#8211;&gt; </strong>session.saveOrUpdate() : saveOrUpdate does a select first to determine if it needs to do an insert or an update.<br />
Insert data if primary key not exist otherwise update data.</p>
<p><strong>&#8211;&gt; </strong>session.persist() : Does the same like session.save().<br />
But session.save() return Serializable object but session.persist() return void.<br />
session.save() returns the generated identifier (Serializable object) and session.persist() doesn&#8217;t.<br />
<em>For Example :</em><br />
if you do :-<br />
System.out.println(session.save(question));<br />
This will print the generated primary key.<br />
if you do :-<br />
System.out.println(session.persist(question));<br />
Compile time error because session.persist() return void.</p>
<h2  class="related_post_title">Related Post</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/difference-between-sessionsave-sessionsaveorupdate-and-sessionpersist/" title="Difference between session.save() , session.saveOrUpdate() and session.persist()"><img src="Array" alt="Difference between session.save() , session.saveOrUpdate() and session.persist()" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/difference-between-sessionsave-sessionsaveorupdate-and-sessionpersist-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between session.save() and session.saveOrUpdate()</title>
		<link>http://www.bestjavainterviewquestions.com/difference-between-sessionsave-and-sessionsaveorupdate-4/</link>
		<comments>http://www.bestjavainterviewquestions.com/difference-between-sessionsave-and-sessionsaveorupdate-4/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 17:19:52 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Session Interview Questions]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/difference-between-sessionsave-and-sessionsaveorupdate-4/</guid>
		<description><![CDATA[Difference between session.save() and session.saveOrUpdate()? session.save() &#8211; Insert data into the table session.saveOrUpdate()- Insert data if primary key not exist otherwise update Random Posts]]></description>
			<content:encoded><![CDATA[<p>Difference between session.save() and session.saveOrUpdate()?</p>
<p>session.save() &#8211; Insert data into the table<br />
session.saveOrUpdate()- Insert data if primary key not exist otherwise update</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/how-the-web-container-creates-a-servlet-object/" title="How the Web Container creates a servlet object"><img src="Array" alt="How the Web Container creates a servlet object" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/java-package/" title="Java Package"><img src="Array" alt="Java Package" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/define-session-tracking/" title="Define Session Tracking"><img src="Array" alt="Define Session Tracking" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/what-is-abstract-classexplan/" title="What is Abstract Class?Explan"><img src="Array" alt="What is Abstract Class?Explan" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/hibernate-interview-questions-2/" title="Hibernate Interview Questions"><img src="Array" alt="Hibernate Interview Questions" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/difference-between-sessionsave-and-sessionsaveorupdate-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between session.save() and session.saveOrUpdate()</title>
		<link>http://www.bestjavainterviewquestions.com/difference-between-sessionsave-and-sessionsaveorupdate-3/</link>
		<comments>http://www.bestjavainterviewquestions.com/difference-between-sessionsave-and-sessionsaveorupdate-3/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 17:19:37 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Session Interview Questions]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/difference-between-sessionsave-and-sessionsaveorupdate-3/</guid>
		<description><![CDATA[Q) Difference between session.save() and session.saveOrUpdate()? A) session.save() &#8211; Insert data into the table session.saveOrUpdate()- Insert data if primary key not exist otherwise update Random Posts]]></description>
			<content:encoded><![CDATA[<p><strong>Q) Difference between session.save() and session.saveOrUpdate()?<br />
A)</strong><br />
session.save() &#8211; Insert data into the table<br />
session.saveOrUpdate()- Insert data if primary key not exist otherwise update</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/basic-java-interview-question/" title="Basic Java Interview Question"><img src="Array" alt="Basic Java Interview Question" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/why-does-ejb-needs-two-interfaces/" title="Why does EJB needs two interfaces"><img src="Array" alt="Why does EJB needs two interfaces" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/define-session-id/" title="Define Session ID"><img src="Array" alt="Define Session ID" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/how-to-make-a-class-serializable/" title="How to Make a Class Serializable"><img src="Array" alt="How to Make a Class Serializable" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/software-architecture-of-ejb/" title="Software  Architecture of EJB"><img src="Array" alt="Software  Architecture of EJB" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/difference-between-sessionsave-and-sessionsaveorupdate-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between session.save() and session.saveOrUpdate()</title>
		<link>http://www.bestjavainterviewquestions.com/difference-between-sessionsave-and-sessionsaveorupdate-2/</link>
		<comments>http://www.bestjavainterviewquestions.com/difference-between-sessionsave-and-sessionsaveorupdate-2/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 17:19:16 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Session Interview Questions]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=248</guid>
		<description><![CDATA[Q) Difference between session.save() and session.saveOrUpdate()? A) session.save() &#8211; Insert data into the table session.saveOrUpdate()- Insert data if primary key not exist otherwise update Random Posts]]></description>
			<content:encoded><![CDATA[<p><strong>Q) Difference between session.save() and session.saveOrUpdate()?<br />
A)</strong><br />
session.save() &#8211; Insert data into the table<br />
session.saveOrUpdate()- Insert data if primary key not exist otherwise update</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/main-exceptions-in-thread/" title="Main Exceptions in Thread"><img src="Array" alt="Main Exceptions in Thread" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/what-is-abstract-classexplan/" title="What is Abstract Class?Explan"><img src="Array" alt="What is Abstract Class?Explan" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/sockets-programming-in-java-for-clientserver/" title="Sockets programming in Java for Client/Server"><img src="Array" alt="Sockets programming in Java for Client/Server" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/how-application-creates-a-connection/" title="How application creates a connection"><img src="Array" alt="How application creates a connection" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/what-is-anonymous-inner-class/" title="What is Anonymous Inner Class"><img src="Array" alt="What is Anonymous Inner Class" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/difference-between-sessionsave-and-sessionsaveorupdate-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Explain session destroy in Servlets</title>
		<link>http://www.bestjavainterviewquestions.com/explain-session-destroy-in-servlets/</link>
		<comments>http://www.bestjavainterviewquestions.com/explain-session-destroy-in-servlets/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 18:30:03 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Session Interview Questions]]></category>
		<category><![CDATA[session destroy in servlets]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=271</guid>
		<description><![CDATA[Question: How you can destroy the session in Servlet? Answer: You can call invalidate() method on the session object to destroy the session. e.g. session.invalidate(); Random Posts]]></description>
			<content:encoded><![CDATA[<p><strong>Question: How you can destroy the session in Servlet?<br />
Answer: </strong>You can call invalidate() method on the session object to destroy the session. e.g. session.invalidate();</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/calling-a-method-in-java/" title="Calling a Method in Java"><img src="Array" alt="Calling a Method in Java" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/struts-interview-questions/" title="STRUTS Interview Questions"><img src="Array" alt="STRUTS Interview Questions" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/522/" title="Creating a Text file using Java"><img src="Array" alt="Creating a Text file using Java" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/define-static-keyword/" title="Define Static Keyword"><img src="Array" alt="Define Static Keyword" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/define-hashset-class/" title="Define HashSet Class"><img src="Array" alt="Define HashSet Class" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/explain-session-destroy-in-servlets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Explain Session tracking using Servlet</title>
		<link>http://www.bestjavainterviewquestions.com/explain-session-tracking-using-servlet/</link>
		<comments>http://www.bestjavainterviewquestions.com/explain-session-tracking-using-servlet/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 18:29:04 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Session Interview Questions]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[session tracking using servlet]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=269</guid>
		<description><![CDATA[Question: How to track a user session in Servlets? Answer: The interface HttpSession can be used to track the session in the Servlet. Following code can be used to create session object in the Servlet: HttpSession session = req.getSession(true); Related Post]]></description>
			<content:encoded><![CDATA[<p><strong>Question: How to track a user session in Servlets?<br />
Answer:</strong> The interface HttpSession can be used to track the session in the Servlet. Following code can be used to create session object in the Servlet: HttpSession session = req.getSession(true);</p>
<h2  class="related_post_title">Related Post</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/define-precompile-of-jsp-page/" title="Define Precompile of Jsp page"><img src="Array" alt="Define Precompile of Jsp page" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/calling-a-method-in-java/" title="Calling a Method in Java"><img src="Array" alt="Calling a Method in Java" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/what-is-api/" title="What is API"><img src="Array" alt="What is API" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/what-is-jre-explain/" title="What is JRE ? Explain"><img src="Array" alt="What is JRE ? Explain" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/why-does-ejb-needs-two-interfaces/" title="Why does EJB needs two interfaces"><img src="Array" alt="Why does EJB needs two interfaces" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/explain-session-tracking-using-servlet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Define Session Migration</title>
		<link>http://www.bestjavainterviewquestions.com/define-session-migration/</link>
		<comments>http://www.bestjavainterviewquestions.com/define-session-migration/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 18:27:46 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Session Interview Questions]]></category>
		<category><![CDATA[session migration]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=267</guid>
		<description><![CDATA[Question: What is Session Migration? Answer: Session Migration is a mechanism of moving the session from one server to another in case of server failure. Session Migration can be implemented by: a) Persisting the session into database b) Storing the session in-memory on multiple servers. Random Posts]]></description>
			<content:encoded><![CDATA[<p><strong>Question: What is Session Migration?<br />
Answer: </strong>Session Migration is a mechanism of moving the session from one server to another in case of server failure. Session Migration can be implemented by:<br />
a) Persisting the session into database<br />
b) Storing the session in-memory on multiple servers.</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/servlet-session-examples/" title="Servlets Session Examples"><img src="Array" alt="Servlets Session Examples" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/difference-between-sessionsave-and-sessionsaveorupdate-4/" title="Difference between session.save() and session.saveOrUpdate()"><img src="Array" alt="Difference between session.save() and session.saveOrUpdate()" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/define-jsp-include-and-jsp-forward/" title="Define Jsp-include and Jsp-forward"><img src="Array" alt="Define Jsp-include and Jsp-forward" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/explain-session-destroy-in-servlets/" title="Explain session destroy in Servlets"><img src="Array" alt="Explain session destroy in Servlets" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/difference-between-get-and-head-request-methods/" title="Difference between GET and HEAD request methods"><img src="Array" alt="Difference between GET and HEAD request methods" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/define-session-migration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Define Session Hijacking</title>
		<link>http://www.bestjavainterviewquestions.com/define-session-hijacking/</link>
		<comments>http://www.bestjavainterviewquestions.com/define-session-hijacking/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 18:26:52 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Session Interview Questions]]></category>
		<category><![CDATA[session hijacking]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=265</guid>
		<description><![CDATA[Question: What is session hijacking? Answer: If you application is not very secure then it is possible to get the access of system after acquiring or generating the authentication information. Session hijacking refers to the act of taking control of a user session after successfully obtaining or generating an authentication session ID. It involves an [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Question: What is session hijacking?<br />
Answer:</strong> If you application is not very secure then it is possible to get the access of system after acquiring or generating the authentication information. Session hijacking refers to the act of taking control of a user session after successfully obtaining or generating an authentication session ID. It involves an attacker using captured, brute forced or reverse-engineered session IDs to get a control of a legitimate user&#8217;s Web application session while that session is still in progress.</p>
<h2  class="related_post_title">Related Post</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/define-session-hijacking-3/" title="Define Session Hijacking"><img src="Array" alt="Define Session Hijacking" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/define-session-hijacking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advantage of Cookies over URL</title>
		<link>http://www.bestjavainterviewquestions.com/advantage-of-cookies-over-url/</link>
		<comments>http://www.bestjavainterviewquestions.com/advantage-of-cookies-over-url/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 18:23:25 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Session Interview Questions]]></category>
		<category><![CDATA[cookies advantages over url]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=261</guid>
		<description><![CDATA[Question: What are the advantage of Cookies over URL rewriting? Answer: Sessions tracking using Cookies are more secure and fast. Session tracking using Cookies can also be used with other mechanism of Session Tracking like url rewriting. Cookies are stored at client side so some clients may disable cookies so we may not sure that [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Question: What are the advantage of Cookies over URL rewriting?<br />
Answer: </strong>Sessions tracking using Cookies are more secure and fast. Session tracking using Cookies can also be used with other mechanism of Session Tracking like url rewriting.</p>
<p>Cookies are stored at client side so some clients may disable cookies so we may not sure that the cookies may work or not.</p>
<p>In url  rewriting requites large data transfer from and to the server. So, it leads to network traffic and access may be become slow.</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/explain-executequery-method/" title="Explain executeQuery Method"><img src="Array" alt="Explain executeQuery Method" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/life-cycle-of-applet/" title="Life cycle of Applet"><img src="Array" alt="Life cycle of Applet" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/what-is-thread-synchronization/" title="What is Thread Synchronization"><img src="Array" alt="What is Thread Synchronization" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/creating-the-java-class/" title="Creating the Java Class"><img src="Array" alt="Creating the Java Class" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/explain-session-destroy-in-servlets/" title="Explain session destroy in Servlets"><img src="Array" alt="Explain session destroy in Servlets" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/advantage-of-cookies-over-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
