Security :: FormsAuthenticationTicket And HttpCookie Are Not Working In Chrome?

Apr 30, 2010

I have a web application developed using VB .Net 2003, and is running ASP Net 1.1.

The application is running fine on all browser, except for the login/authentication control that doesn't work properly on Chrome.

We have different types of users using the website, and each user type has different menu items displayed for.

The problem is, if a user logs on with let's say Admin account, and logs off and later logs on again using student account, the user still gets the Admin menu, and of course vice versa.

I'm not sure if I'm doing something wrong, or there is something I'm missing here.

On more thing, if the timeout period reached, and the session was timed out , and the user (regardless of the type) tries to log on again, he is successful on all browser except on Chrome again!, where it keeps telling the session was timed out, and never logs on again until clearing the cookies.

This is what i have in my application web.config

<!-- Authentications -->
authentication mode="Forms">
<forms loginUrl="index.aspx" name="authCookie" protection="All" timeout="60" path="/"></forms>
</authentication>

[Code]....

View 2 Replies


Similar Messages:

Security :: Win Authentication Working Fine On Chrome / Mozilla But Not On IE?

Jun 29, 2010

I have created a we app. using win authentication. When type the server ip addres in chrome I get the login window and it works just fine with my organizations credentials, however when doing the same using Internet Explorer I have to login with the server credentials as my account is not valid.

View 1 Replies

Security :: Create An Url Containing A FormsAuthenticationTicket?

Mar 13, 2010

I'm trying to dynamically create a url containing a FormsAuthenticationTicket that can then be emailed to a user who has forgotten their password. Then when the user follows the url they will be authenticated by the ticket in the url and be able to access the reset password page

I have tried creating a FormsAuthenticationTicket object and encrypting it but the string it produced seems way longer than the hash in the urls produced when using cookieless authentication.

What I want to do is produce a url say

eg. http://www.mysite.com/lkdjlkj_hashcode_lkoiojiionki/reset.aspx

that will be recongnised by cookieless authentication. But as I said the hash I come up with seems way to long and just not right at all.

you can see how long and different it is here by pressing the forgot password button..

[URL]

it says in the docs for FormsAuthenticationTicket that the encrypted ticket can be stored in a url. but I want to make it the same as those used by cookieless authentication so that it is recognised straight away.

View 3 Replies

Security :: Save MyAppUser In FormsAuthenticationTicket?

Feb 19, 2010

I'm not using the Membership framework built into .NET but I'm using FormsAuthenticationTicket to make sure user is logged in. I have an object for my users in my application -- let's call it MyAppUser object. Can I save this in the FormsAuthenticationTicket as opposed to saving some string?

If I can't do that, I can save the object in session but I'm a little worried that session and FormsAuthenticationTicket will get out of synch.

View 1 Replies

Security :: FormsAuthenticationTicket, Role, Profile?

Apr 27, 2010

I assume that any Role information is being stored in the FormsAuthenticationTicket in the UserData (delimited by some character).Second, I assume that any information in the Profile is not stored in memory / session anywhere, but when you do call the profile.VARIABLE, you are in fact doing a call to the DB (although it's simplified by the fact that it knows who you are when calling etc).Assuming the above is correct, I'm trying to complete a custom membership provider. As part of this each user will have a single role. So using a full blown role provider seems to be overkill. I assume that I can write the single role into the UserData in the FormsAuthenticationTicket myself?I would like to also store a number of other small bits of information in the ticket (such as a GroupId, VendorId which are seperate from the user / role). If I wanted to do this, and the role is held in the userdata, how would I identify what is a role and what is someother persistant data I need on the application?I could use Session items for these, but this might cause issues with the web-farm, plus the amount of data is very small (3 or 4, int32 values and maybe one string).Finally, items such as Address, PostCode, Contact Phone number all seem sensible items to place in the profile ( I'm using the table provider). Is the advantage here purely the ease of access? This isn't commonly used data, so if there is a round trip to the db thats not an issue really in this instance

View 4 Replies

Security :: Adding Profile Information To FormsAuthenticationTicket

Jan 19, 2010

I'm authenticating my users using the following code for the login event:

[Code]....

The following code runs in global.asax at Application_AuthenticateRequest:

[Code]....

Everything works great so far. Next thing that I need to do is add additional user information to the forms authentication ticket using user profile. When I try to add it right after the login code above, I end up getting an error message about anonymous profile. On the other hand, HttpContext.Profile is read only and doesn't seem to work. Is there any workaround for this?

View 2 Replies

Security :: C# FormsauthenticationTicket Doesn't Override Configuration Timeout

Jan 7, 2010

I have a testproject and the forms timeout specified in web.config overrules the timeout which I set in FormsAuthenticationTicket. According the documentation, the timeout (expire date) in FormsAuthenticationTicket must override the timeout in web.config.

Documentation found on:

[URL]

[Code]....

Here is my code:

Web.config:

[Code]....

Login.aspc.cs:

[Code]....

Now, when I login, i get redirected after 1 minute of inactivity. This isn't supposed to happen, right? I have to be redirected after 2 minutes.

View 1 Replies

Security :: FormsAuthenticationTicket In Firefox(multiple Instance Of Browser)

Oct 27, 2010

I am using forms authentication in asp.net application. This is working fine in internet explorer. Opening application in firefox is also fine but when i login in second instance of firefox, application in first instance logs out. Following is my code for creating ticket and cookie.

FormsAuthenticationTicket objTicket = new
FormsAuthenticationTicket(1, sUserName,
DateTime.Now,
DateTime.Now.AddMinutes(60),
false,
"");

HttpCookie objCookie = new
HttpCookie(FormsAuthentication.FormsCookieName);
objCookie.Value = FormsAuthentication.Encrypt(objTicket);
objCookie.Expires = DateTime.Now.AddHours(1);
HttpContext.Current.Response.Cookies.Add(objCookie);

View 1 Replies

Security :: How To Automatically Send User To Login Page When FormsAuthenticationTicket Expires

Feb 13, 2010

I'm using Forms authentication in my application but I'm not using the Membership that's built into .NET.

How do I automatically send user to login page when his/her FormsAuthenticationTicket expires? I just don't want a user log in and leave a page on their computer screen long after their session has expired. I'd like to make sure that as soon as the user's
FormsAuthenticationTicket has expired, I send them to login page.

View 1 Replies

AJAX :: Drag And Drop Is Not Working In Chrome And Safari But It Is Working Fine IE And Firefox

Nov 19, 2010

After the implementation of ajax drag and drop, we have observed that which is working fine in IE and Firefox and not in chrome and safari, In Google chrome and Safari when we try to drag a module, the page getting scrolling to the top of the page.

View 1 Replies

MVC :: Ajax.BeginForm Not Working In Firefox But Is Working In Chrome And IE

Feb 9, 2011

I have a problem with partial postback in FireFox

in my index.aspx I have following code:

[Code]....

Finally my Partialview has following content:

[Code]....

This code is working fine when using IE or Google Chrome, but when using FireFox the code in my controller is never reached.

View 1 Replies

ASP Session Not Working In IE8 - Working In Firefox - Chrome

Jan 27, 2010

I'm trying to get my site to play a flash video the first time, and only the first time, a user visits the site. Currently, I'm using ASP session tags to install a sessionid cookie into the users browsers.

<% Session("name")="blah"
Session.Timeout=7
%>

This method works fine in FF and Chrome, but IE8 doesn't seem to want to accept the cookie. I've tested it with IE's lowest security settings possible ("Accept all cookies"), but it still does not create any cookie. Is there any other way to make it so that all browsers will take the cookie?

View 1 Replies

UpdatePanel Not Working In IE Or Chrome

Jun 2, 2010

I have an updatepanel on my masterpage. Within the contentplace holder I have my update progress control. When a user clicks on the button I load some data into a gridview. This works perfectly in FireFox. User clicks the button, the loading image in my updateprogress fires and loads the gridview. When I test this in IE 6 or 7 or in Chrome. It does a full postback and the updateprogress is never shown. So the updatepanel doesnt seem to be working in these two browsers. Code is below. Again...it works perfect in FireFox.

***From Masterpage ***

<asp:UpdatePanel ID="UpdatePanel" runat="server">
<contenttemplate>
<asp:contentplaceholder id="holder" runat="server" />
</contenttemplate>
</asp:UpdatePanel>

**From aspx page ****

<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<img src="ajax-loader.gif" />
</ProgressTemplate>
</asp:UpdateProgress>

View 1 Replies

Jquery - Datepicker Not Working In Chrome

Mar 20, 2011

I have a Jquery UI datepicker control in my asp.net MVC application and it works fine in IE and Firefox but it doens't work in chrome when I click the datepicker button. Here is my Index view:

$(function() {
$('#datepicker').datepicker({
changeMonth: true,
dateFormat: "dd M yy",
changeYear: true,
showButtonPanel: true,
autoSize: true,
altField: "input#txtDate",
onSelect: function(dateText, inst) {
$.ajax({
type: "POST",
url: "/LiveGame/Partial3?gameDate=" + dateText,
dataType: "html",
success: function(result) {
var domElement = $(result);
$("#dvGames").html(domElement);
}
});
}
});
$("#txtDate").val($.format.date(new Date(), 'dd MMM yyyy'));
$('#dvGames').load(
'<%= Url.Action("Partial3", "LiveGame") %>',
{ gameDate: $("#txtDate").val() }
);
});

Here is my partial:

public ActionResult Partial3(string gameDate)
{
return PartialView("Partial3", gameDate);
}
<div id="dvGames" class="cornerdate1">
<%= Url.Action("LiveGame","Partial3") %>
</div>
<input type="text" id="txtDate" name="txtDate" readonly="readonly" class="cornerdate" />
<input id="datepicker" class="cornerimage" type="image" src="../../Content/images/calendar.gif" alt="date" />
</div>

View 1 Replies

Web Forms :: UseSubmitBehavior Not Working In Chrome?

Jan 28, 2010

I have a normal asp:Button that is using UseSubmitBehavior="false" . It works fine in FF 3.5, IE8, but not in Chrome. In other words, when using Chrome, if I press Enter on the keyboard, it goes ahead and submits the form, which in my case is very undesirable.

My button code :

[Code]....

Has anybody else experienced this problem? Does anyone know of a possible workaround/solution for Chrome?

View 1 Replies

FileUpload Not Working In Google Chrome?

Apr 23, 2010

ASP.Net FileUpload not working in google chrome.It shows validation error,even after choosing right file type.

Here is a code :

<asp:FileUpload ID="FU1" runat="server" />
<asp:RegularExpressionValidator
id="FileUpLoadValidator" runat="server"
ErrorMessage="Upload jpg and gif only."
ValidationExpression="^(([a-zA-Z]:)|(\{2}w+)$?)(\(w[w].*))(.jpg|.JPG|.gif|.GIF)$"
ControlToValidate="FU1">
</asp:RegularExpressionValidator>

View 1 Replies

Response.CacheControl Not Working In Firefox Or Chrome

Jan 15, 2010

i have this code in global.asax.vb, to disable the back button.

Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
Response.Buffer = True
Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0))
Response.Expires = -1
Response.CacheControl = "no-cache"
End Sub

this code works perfect in IE, but refuses to work in any other browser like firefox or chrome. what can i do to make it multi browser?

View 1 Replies

Response.BinaryWrite Not Working In Firefox And Chrome?

Dec 7, 2010

I have binary data - it is png picture.

I use Response.BinaryWrite to display this picture.

Unfortunately it works only in Internet Explorer. In Firefox and Chrome it shows long text of strange symbols.

What's wrong with BinaryWrite? How to solve this?

I may not say to asp:Image to show this picture, I may not indicate ImageURL, becouse there's no URL. This picture is response from webrequest. And webrequest may not be indicated in URL because I set some parameters not in QueryString but in post data.

View 2 Replies

Javascript Or CSS Hover Not Working In Safari And Chrome

May 10, 2010

I have a problem with a script for a image gallery. The problem seems to only occur on Safari and Chrome, but if I refresh the page I get it to work correctly - weird!

Correct function:The gallery has a top bar, which if you hover over it, it will display a caption. Below sits the main image. At the bottom there is another bar that is a reversal of the top bar. When you hover over it, it will display thumbnails of the gallery.

The problem:In Safari and Chrome, the thumbnail holder will not display. In fact, it doesn't even show it as an active item (or a rollover). But oddly enough, if you manually refresh the page it begins to work correctly for the rest of the time you view the page. Once you have left the page and return the same error occurs again and you have to go through the same process.

Here's one of the pages to look at:
link text

Here's the CSS:

#ThumbsGutter {
background: url(../Images/1x1.gif);
background: url(/Images/1x1.gif);[code]....

View 1 Replies

Web Forms :: CssClass Not Working For DataTable In Chrome

May 11, 2010

This is the code form my master page:

<asp:Menu runat="server" id="siteMap" CssClass="siteMapCss" DataSourceID="SiteMapDataSource1" Orientation="Horizontal" >
<StaticMenuItemStyle CssClass="StaticMenuItemStyle" />
<StaticHoverStyle CssClass="StaticHoverStyle " />
<StaticSelectedStyle CssClass="StaticSelectedStyle" />
<DynamicMenuItemStyle CssClass="DynamicMenuItemStyle" />
<DynamicHoverStyle CssClass="DynamicStaticHoverStyle" />
</asp:Menu>

This is the Css:

.siteMapCss
{
margin:auto;
margin-top:15px;
}
.StaticMenuItemStyle
{
margin-left:10px;
color:Black;
}
.StaticSelectedStyle
{
color:Gray;
}

It takes the static styles but not the styles for .siteMapCss. i have checked in IE and i can find reference to .siteMapCss. but in chome its not there. IE:................

View 2 Replies

AJAX :: HoverMenuExtender Not Working In Google Chrome?

Jul 13, 2010

I have a GridView in which I have item,Edit ,Footer and Empty Item Template , and also a hovermenuextender to show Edit/Delete link on row hover. when my page opens if it doesn't have any data it show empty row , when user enters data and click on Add button it save's the data and load the grid. All works fine in IE and firefox but not in google Chrome.

After saving data in chrome all links stop working , but when i reload the page it workes fine if i remove the hovermenuextender it works fine in chrome also, So i think hovermenuextender creating problem in chrome when it's added at runtime(if empty grid comes hovermenuextender will be added after data saved)

View 2 Replies

AJAX :: Date Picker Not Working On Chrome?

Aug 18, 2010

ajax toolkit date picker is not working in latest google chrome browser. it works fine all browsers and earlier version of chrome but it doesnt work latest version. any body know the reason

View 2 Replies

Pagemethod Implementation Is Not Working In Chrome Browser?

Nov 30, 2010

My Pagemethod implementation is not working in Chrome browser. I have ASP.NET 3.5 web application developed in VS 2008.

The code below not working in chrome or Safari:

function FetchDataOnTabChange(ucName)
{
PageMethods.FetchData(ucName, OnSuccessFetchDataOnTabChange, OnErrorFetchDataOnTabChange);
}
function OnErrorFetchDataOnTabChange(error)
{
//Do something
}
function OnSuccessFetchDataOnTabChange(result)
{
//Do something
}

View 2 Replies

AJAX :: .net MVC Ajax.BeginForm Not Working In Firefox But Working In Chrome And IE

Feb 11, 2011

I have a problem with partial postback in FireFox in my index.aspx I have following code:

[Code]....

Finally my Partialview has following content:

[Code]....

This code is working fine when using IE or Google Chrome, but when using FireFox the code in my controller is never reached. I just can't figure out what I am missing

View 1 Replies

Popup Window Is Not Working In Firefox And Google Chrome?

Jan 27, 2010

I want to open a popupwindow (with close button only) when the user clicks a button and the parent window should be disabled until the popup window closed. For that I'm using the following code

function popup_window(url) {
popupwin = window.showModalDialog(url,null,'height=20,width=150,status=no,resizable=no,scrollbars=no,toolbar=no,location=no,menubar=no');
}

Anyhow, this code is working perfectly in IE. But, I hav two problems. In firefox, it is not opening with the size I've mentioned in the script. It is opening in full size. And In Google Chrome, parent window is not getting disabled.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved