Firefox Lead Dot In Cookie Across All "mydomain.com" Sites?

Mar 23, 2010

We are having an annoying issue with Firefox and cookies.We have the following domains:

sub1.mydomain.com
sub2.mydomain.com
sub3.mydomain.com
otherdomain.com

We have converting our framework to be multilingual and providing a drop down to change the language at any point during site.The code base is shared across all the domains above.We can not set a cookie across all "mydomain.com" sites,they have to be on each of the sub domains.To get this to work we set a JavaScript cookie when the users chooses a new language.When the page posts back to the server the code picks this up and sets the users preferences to that new language code,(this is all C# and ASP.NET).We have to set the host to be "subX.mydomain.com" and the path to be "/" in the cookie so that it is just for the subdomain and all parts of that domain.This works great on all browsers apart from FireFox. It seems that firefox will pre append a DOT to the beginning of domain so ".subX.mydomain.com".When the code posts back with FireFox the cookie is always null.

Has anyone had this situation,(I imagine it is not al that uncommon).I have read a lot of people saying,remove the domain from the cookie,but that can not work for us as we have multiple subdomains that need their own cookie values.

EDIT

var d = new Date();
d.setYear(d.getYear() + <%# CookieLangYearExpireOffset %>);
document.cookie = '<%# CookieLangKey %>=' + langCode + '; expires=' + d.toUTCString() + '; domain=' + window.location.hostname + '; path=/';

[code]...

The server side code parts are just so that the server side and client side use the same expire value and name vaule.

View 1 Replies


Similar Messages:

State Management :: How To Read Cookie Information When Using Mozilla FireFox

Jul 11, 2010

I am Trying To get information I stored in the cookie after create it , it's works fine when using IE8 in browsing website but i face problems in Mozilla

ttpCookie cookie = Request.Cookies["HMS_ACC"];if (cookie!=null) { if (PublicFunctions.CheckUser(cookie.Values[0].ToString(), cookie.Values[1].ToString())) { PublicFunctions.CreateSession(cookie.Values["UserName"].ToString(), cookie.Values["Password"].ToString()); return true; } else { return false; } }

View 2 Replies

Web Forms :: Create Mybusinssesname.mydomain.com ?

Oct 19, 2010

I am using asp.net 4 with server 2008 r2 and I am trying to get Routing working how I want.Lets say I have a website which allows my customers to create there own page within the site. I could us something like routes.MapPageRoute("Businesses", "business/{businessName}", "~/Business/BusinessDetail.aspx");Which works ok if I want mydomain.com/business/mybusinessname. Is it possible to create mybusinssesname.mydomain.com instead?I dont want to have to make changes everytime in IIS,is it possible to do this with routing?

View 1 Replies

Unable To Open Certain Sites From Internet Explorer 7.it Is Showing All Sites As Restricted?

Aug 17, 2010

i m not able to open certain sites from internet explorer 7.it is showing all sites as restricted .

View 12 Replies

Web Forms :: Rewriting The URL / Change This Www.mydomain.com/Default.aspx?

Apr 15, 2010

I need to change this www.mydomain.com/Default.aspx towww.mydomain.com/Home i tryed this:

[Code]....

in web.config but nothig happend

View 1 Replies

How To Develop Web Parts That Can Be Used In Our ASP.NET Sites And Our SharePoint Sites

Jul 16, 2010

I am interested in developing Web Parts that can be used in our ASP.NET sites
and our SharePoint sites. An example Web Part I have in mind is a Post Code (Zip Code) look up.- Visual Studio 2010 Premium- SharePoint Designer 2007- Windows 2003 Server (therefore WSS 3.0)- No SharePoint Server

View 2 Replies

Web Forms :: Add Increment ID At The Place Of Lead ID?

Apr 27, 2016

i want to add an increment id at the place of Lead_ID

<img src="http://track.opicle.com/aff_l?offer_id=2193&adv_sub=Lead_ID" width="1" height="1" />

View 1 Replies

Html.ActionLink In Partial View - All The Links Of Articles Lead To The Same Url

Mar 11, 2010

I am using the following code in my master page:

<% Html.RenderAction("RecentArticles","Article"); %>


where the RecentArticles Action (in ArticleController) is :

[ChildActionOnly]
public ActionResult RecentArticles()
{
var viewData = articleRepository.GetRecentArticles(3);
return PartialView(viewData);
}

and the code in my RecentArticles.ascx partial view: <li class="title"><span><%= Html.ActionLink(article.Title, "ViewArticle", new { controller = "Article", id = article.ArticleID, path = article.Path })%></span></li>

The problem is that all the links of the articles (which is built in the partial view) lead to the same url- "~/Article/ViewArticle" . I want each title link to lead to the specific article with the parameters like I'm setting in the partial view.

View 2 Replies

Accessing To Request Object Will Lead To ReadEntityBody To Return 0 (in A HttpHandler Class)?

Dec 25, 2010

I created a httpHandler that successfully implements IHttpHandler for handling file uploads. It works perfectly fine. You send the file with the form, the class receives it and will save it to hard disk. It reads chunks of file with ReadEntityBody function of HttpWorkerRequest class.

Here is the situation i'm faced with.If at any stage before trying to read the file with ReadEntityBody, I try to access Request object (even Request.InputStream.Length!) ReadEntityBody would return 0 means it won't read from file stream.

After further testing I found out the reason behind it. Accessing to Context.Current.Request object will trigger some sort of functionality that will cause asp.net to handle file uploads at that moment by it's own! I believe this is a bug.

for example exactly after this line of code, asp.net will upload the file completely, and so there will be no stream for ReadEntityBody to read from later.

int FileSize = context.Request.InputStream.Length;

View 1 Replies

State Management :: Remove Item (Cookie) From Basket (Cookie Collection)?

Sep 8, 2010

I am busy building a shopping cart with cookies. I have datalist which I populate from the cookies with a delete button next to each cookie

[Code]....

Now the problem is that when I hit the delete / remove button to expire the cookie, what happens when repopulating the datalist is that it shows the original cookie with all it's values as well as a new entry where all the values are blank.

View 3 Replies

State Management :: Updating Cookie / Change The Value In A Cookie?

May 10, 2010

I want to change the value in a cookie:
HttpCookie hc = new HttpCookie("HiddenColumns");
hc.Value = customView.HiddenFields;
hc.Expires = DateTime.Now.AddDays(365);
Response.SetCookie(hc);

Or this way:

Response.Cookies["HiddenColumns"].Value = customView.HiddenFields;;
Response.Cookies["HiddenColumns"].Expires = DateTime.Now.AddDays(365);

But when I retrieve the cookie value, it is still old, unless I do postback. I don't want to use Redirect.

View 2 Replies

WCF / ASMX :: Cookie Refuses To Get Set When Asking For A Cookie From Webservice

Jun 8, 2010

I'm trying to use a webservice that first expects the clients to login, to retrieve a cookie to re-use.
This is done through a login(string user, string pass) method on the webservice.

Doing this through a browser works fine, we get a cookie, and we can see the cookie via Fiddler or whatvever proxysniff thingy.

Time to do the same in ASP.Net, so we use the WSDL and generate a nice proxy class, and it works fine to call the login() method, but Never Ever does a cookie get set !

I already used the "cookiejar" technique - which means i create an instance of a CookieContainer and assign it to the proxyclass like this;

var cookies = new CookieContainer(3);

View 3 Replies

Firefox - Finding Firebug Addon Automation / How To Interact With Firefox Addons

Nov 16, 2010

has any one done any automation related to Firefox - Firebug

I am trying to automate some task using C#

I found these two open source projects related to automating firefox

[URL]

how to interact with firefox addons

View 2 Replies

Open Source Lead Management System With Source Code?

Sep 6, 2010

asp.net open source Lead management system with source code.

View 9 Replies

Custom Server Controls :: Firefox (Firefox/3.6.13 ) Not Saving Cookies For Https In Logi Report(It's A Reporting Software0?

Feb 7, 2011

I am using Logi Reports for creating reports in my application. I am passing cookies from web application to these logi reports. Cookies were workign correctly before, but after the release of this version. Cookies are not working in these logi reports.

View 1 Replies

How To Find The Cookie In IEs Cookie-store

Jun 14, 2010

I am a bit baffled here; using IE7, ASP.NET 2.0 and Cassini (the VS built-in web server; although the same thing seems to be true for "real" applications deployed in IIS) I am looking for the session-id-cookie. My test page shows a session id (by printing out Session.SessionId) and Response.Cookies.Keys contains ASP.NET_SessionId. So far so good.

But I cannot find the cookie in IEs cookie-store! Nor does "remove all cookies" reset the session (as it does in FF)... So where - I am tempted to write that four letter word - does IE store that bloody cookie? Or am I missing something? By the way there is no hidden field with a session id either, as far as I can see. If I check in FF there is a cookie called ASP.NET_SessionId as I would expect. And as mentioned above deleting that cookie does start a new session; as I would expect.

View 1 Replies

C# - Serving An Exe To Firefox From An Aspx. Firefox Downloads It As "Content". Incorrect Filename And No Extension?

Mar 28, 2011

I'm trying to server an exe to Firefox from an aspx page. The aspx page handles the headers and the page is launched by our Flex GUI. Flex correctly launches the link for all browsers (including Firefox) so I'm certain that's not the issue.

The problem I'm having is when I try to download the file from within Firefox, FF downloads the file fine but it names it "Content". It has no extension and the file name is incorrect. All the other browsers download it with the file name I specified in the aspx page and they all have the .exe extension. I should note that if I rename the "Content" file to "Content.exe" it runs correctly.Below is the code I'm using in my aspx page -

protected void Page_Load(object sender, EventArgs e) {
string fileName = Request.QueryString["file"];
System.IO.FileInfo fileInfo = new System.IO.FileInfo(Server.MapPath(fileName));

[code]...

View 2 Replies

Want To To Find Web Sites Examples?

Mar 25, 2011

We plan to develop a ASP.NET ( VS 2010 ) web site.We need to know if there are any ready made startup ASP.NET web sites so we can get them and adjust / upgrade according to our needs.

View 1 Replies

MVC :: How To Create Several Sites On The Same Domain

May 31, 2010

I want to create several websites on my domain, and I am wondering how to go about this in MVC? Should I put them all within one project, and create separate folders in each Views, Models and Controllers folder for each site, or would it be better to create a separate project for each site, although I'm not sure how I would integrate

View 5 Replies

How To Create Sites Programmatically

Feb 16, 2011

Im working on a project where i will need to create sites programatically when a user completes a sign up process.

so basically if my main site is: www.mysite.com i will need to create subsites in the format of: www.username.mysite.com

where username is an option entered by the user in the signup process to designate a unique identifier for their site.

im working with VB.NET language.

View 5 Replies

Two Web Sites Accessing Through One Database?

Feb 28, 2010

I have a website that writes and reads data from a database.It will help me to read and write to the same database from a separate website.Do I have a problem with "collisions" or are the calls to the database completely separate ?

View 4 Replies

Configuration :: Multiple SSL Sites In IIS 6?

Jan 17, 2011

I am having some trouble getting a second site to work with SSL in IIS 6. The server is Windows Server 2003 Service Pack 2.

I am getting the error "IIS was unable to start the site, Another site may already be using the port you configured for this site. Please select an unused port"

Both sites have different IP address but are on port 443.

When I stop one - I can start the other. But cannot run both at the same time.

I have tried editing MetaBase.xml file as a workaround but the file seems to be readonly. When I go to save, I get prompted to create a file.

View 5 Replies

HttpModule Over Multiple Sites

Nov 2, 2010

I have custom redirection implemented in a module. Do I have to modify each config for all sites or is there a more general approach?Also, I have files in App_Data for this module, which would cause replication.

View 1 Replies

Php - 'www.example.net' And 'forum.example.com/content' Two Different Web Sites?

Sep 4, 2010

There is a website www.example.net and it has a Forum link on its home page which leads to forum.example.com/content.

I found out that the main site has been developed using the .NET Framework, and the forum has been built using PHP based vBulletin.

Are these two different domains? In other words, is the Forum some folder inside the Visual Studio Project www.example.net running as part of the ASP.NET website? Or is "forum.example.com/content a link to an altogether different website?

View 7 Replies

Security :: Using One Username To Log Into Two Different Sites?

Apr 8, 2010

I have two websites that run on two different servers and they both both have their own asp membership databases. One is http:// and one is https://. Is it possible to create a way that a user can access both websites while only entering username and password once? Or if the user logs onto the https site can I then redirect to the http site and auto authenticate?

View 3 Replies







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