<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>State Management</title><link>http://forums.asp.net/22.aspx</link><description>Managing ASP.NET state - ViewState, Application, Session, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=69&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: session id  issue</title><link>http://forums.asp.net/thread/3279068.aspx</link><pubDate>Tue, 07 Jul 2009 13:19:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3279068</guid><dc:creator>jeyaseelan@ajsquare.net</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3279068.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3279068</wfw:commentRss><description>&lt;p&gt;RITE05 thanks for your post.&lt;/p&gt;
&lt;p&gt;Your question is not clear, at one place you told&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Each user can able to see list of shops detail according to their permission.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;in another place&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;But the issue is, shop 1 employees&amp;nbsp; are able to see shop 2 details in the middle of the shop 1 process. Same thing happens in shop 2 too. Shop 2 employees are able to see shop 1 details while creating repair order for shop2.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;i&amp;#39;m confused tell me, what exact you want? so that i can help you.&lt;/p&gt;</description></item><item><title>Re: session id  issue</title><link>http://forums.asp.net/thread/3275782.aspx</link><pubDate>Mon, 06 Jul 2009 02:39:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275782</guid><dc:creator>Bober Song - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275782.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3275782</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi &lt;strong&gt;RITE05&lt;/strong&gt;,&lt;/p&gt;
&lt;p&gt;You should double check the Session object before comparing the Session objects value.&lt;/p&gt;
&lt;p&gt;I assume that you use the if state to redirect the user to detail page.&lt;/p&gt;
&lt;p&gt;If the Session object lost, your application will redirect to wrong page.&lt;/p&gt;
&lt;p&gt;So, please try to add the following code:&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;if(Session[&amp;quot;shopnumber&amp;quot;]!=null)
{
if(Session[&amp;quot;shopnumber&amp;quot;]==&amp;quot;Shop1&amp;quot;)
{
Response.Redirect(&amp;quot;Shop1.aspx&amp;quot;);
}
else
{
Response.Redirect(&amp;quot;OtherShop.aspx&amp;quot;);
}
}
else
{
//redirect to the login page
}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;I hope it is helpful to you, if you have any questions, please feel free to let me know.&lt;/p&gt;</description></item><item><title>Re: session id  issue</title><link>http://forums.asp.net/thread/3272201.aspx</link><pubDate>Thu, 02 Jul 2009 20:10:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3272201</guid><dc:creator>deepthoughts</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3272201.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3272201</wfw:commentRss><description>&lt;p&gt;Well,&lt;/p&gt;
&lt;p&gt;It depends on how you are handling Shops manipulation in your application. In the Page_Load event you can put some check like&lt;/p&gt;
&lt;p&gt;if(Session[&amp;quot;ShopID&amp;quot;]!=&amp;quot;Shop1&amp;quot;)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;Response.Redirect(&amp;quot;Unauthorized.aspx&amp;quot;);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;to prevent &amp;quot;Shop2&amp;quot; users access a page specifically meant for &amp;quot;Shop1&amp;quot; users.&lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;</description></item><item><title>Re: session id  issue</title><link>http://forums.asp.net/thread/3272022.aspx</link><pubDate>Thu, 02 Jul 2009 18:21:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3272022</guid><dc:creator>srinivaskotra</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3272022.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3272022</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
&lt;p&gt;in pageload method you have to write conditions as per your requirement.&lt;/p&gt;
&lt;p&gt;if user1=page1.user then&lt;/p&gt;
&lt;p&gt;do someting&lt;/p&gt;
&lt;p&gt;endif&lt;/p&gt;
&lt;p&gt;if you need more information paste your code snippets here so any one guide you.&lt;/p&gt;
&lt;p&gt;Thanks :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: session id  issue</title><link>http://forums.asp.net/thread/3270725.aspx</link><pubDate>Thu, 02 Jul 2009 08:19:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3270725</guid><dc:creator>chanakya01</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3270725.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3270725</wfw:commentRss><description>&lt;p&gt;In which&amp;nbsp;part of your application you are&amp;nbsp;facing this problem??&lt;/p&gt;
&lt;p&gt;Where you are storing the session and retrieving back??&lt;/p&gt;
&lt;p&gt;And where you are displaying the details&amp;nbsp;based&amp;nbsp;on the&amp;nbsp;session value??&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Give some code sample so that I can get a clear idea...&lt;/p&gt;</description></item><item><title>session id  issue</title><link>http://forums.asp.net/thread/3270455.aspx</link><pubDate>Thu, 02 Jul 2009 06:23:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3270455</guid><dc:creator>RITE05</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3270455.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3270455</wfw:commentRss><description>&lt;p&gt;Basically my application is a &amp;nbsp;car maintenance. Each user can able to see list of shops detail according to their permission. &lt;/p&gt;
&lt;p&gt;For example shop 1 employees cann&amp;#39;t&amp;nbsp; be able to see shop2 details. I am storing their shop number in session id when they login first time&amp;nbsp; in the system. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;But the issue is, shop 1 employees&amp;nbsp; are able to see shop 2 details in the middle of the shop 1 process. Same thing happens in shop 2 too. Shop 2 employees are able to see shop 1 details while creating repair order for shop2.&lt;/p&gt;
&lt;p&gt;If any one helps me ... I am really appreciate &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>