Problem with session??http://forums.asp.net/t/1771877.aspx/1?Problem+with+session+Fri, 24 Feb 2012 09:11:10 -050017718774842267http://forums.asp.net/p/1771877/4842267.aspx/1?Problem+with+session+Problem with session?? <p>Hi friends...</p> <p>&nbsp;&nbsp;&nbsp;&nbsp; i'm using paypal gateway for online shopping in my application.After Successful completion of payment i'm redirecting to my application to display successful message to the user,but my problem is when i redirecting to my application from paypal account session got expired.....</p> <p>&nbsp;thn??how to resolve this problem?? how to get session values??</p> 2012-02-21T05:46:50-05:004842306http://forums.asp.net/p/1771877/4842306.aspx/1?Re+Problem+with+session+Re: Problem with session?? <p>Hi...</p> <p>You have to store your session into database with key which you will get back from paypal</p> <p>&nbsp;</p> 2012-02-21T06:26:43-05:004842316http://forums.asp.net/p/1771877/4842316.aspx/1?Re+Problem+with+session+Re: Problem with session?? <p>hi</p> <p>see this code</p> <p><a href="http://www.west-wind.com/presentations/paypalintegration/paypalintegration.asp">http://www.west-wind.com/presentations/paypalintegration/paypalintegration.asp</a></p> <p>Thanks,</p> 2012-02-21T06:35:33-05:004842321http://forums.asp.net/p/1771877/4842321.aspx/1?Re+Problem+with+session+Re: Problem with session?? <p>hi sanjay....</p> <p>&nbsp;&nbsp; thanks for ur response..</p> <p>&nbsp;&nbsp; how to store session values in database with key??</p> <p>&nbsp; give me some sample code..or suggest me how to do??</p> 2012-02-21T06:38:36-05:004848911http://forums.asp.net/p/1771877/4848911.aspx/1?Re+Problem+with+session+Re: Problem with session?? <p>Hi,</p> <p>You can store session in SQL Server or State Server mode. If you want to store session in SQL Server you may need to configure the SQL Server for it. Then you can specify the SqlConnectionString and the timeout in the web.config file. Furthermore, I suggest you to set the timeout property to a longer time. You can refer to the below code.</p> <pre class="prettyprint">&lt;configuration&gt; &lt;system.web&gt; &lt;sessionState mode=&quot;SQLServer&quot; timeout=&quot;60&quot; sqlConnectionString=&quot;Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MyDatabase.mdf;Integrated Security=True;User Instance=True&quot;&gt;&lt;/sessionState&gt; &lt;/system.web&gt; &lt;/configuration&gt;</pre> <p>You can refer to the below link for more information.</p> <p><a href="http://support.microsoft.com/kb/317604">http://support.microsoft.com/kb/317604</a></p> <p><a href="http://msdn.microsoft.com/en-us/library/ms178586.aspx">http://msdn.microsoft.com/en-us/library/ms178586.aspx</a></p> 2012-02-24T09:11:10-05:00