this way: HttpCookie simpleCookie = new HttpCookie( "testCookie" ); simpleCookie.Domain = "localhost"; simpleCookie.Path = "/";
marcossl
Posts
-
accesing a cookie from two different web applications -
accesing a cookie from two different web applicationsfirst of all , thanks guffa. In fact, i set the domain "localhost" in the cookie but it seems not to work
-
accesing a cookie from two different web applicationshey, i wrote some code in Application1 that encrypts a string and saves it in a cookie, and i want to retrieve that string from the cookie i saved from Application 2. My question is: how can i access the same cookie from two different web applications? Thanks
-
Best name for "bug"?What's a bug? a dont know what it is. a joke! What about this: "easter egg"
-
Deserialization problemThe problem seems to be finding that file, not the object serialization. Have you written the right location of the file? have you used "\\" (double slash) in the string instead of simply "\", that's a very common error
-
Getting crazy with Deny()I WANT make it clear that i dont want the highlighted code to run but it does, can make someone tell me why? the permissions (intersecting all policy levels) for the assembly are unrestricted access to reflection. I checked it myself. I'm sure there is no mistake in the policy configurations using System; using System.Reflection; using System.Security; using System.Security.Permissions; [assembly:ReflectionPermissionAttribute(SecurityAction.RequestRefuse,Unrestricted=true, Flags = ReflectionPermissionFlag.AllFlags)] namespace reflectsecuritytest { public class mo { public static void met( int i ) { } public static void met( float f ) { } public static void met( string s ) { } public static int met( decimal d ) { return 1; } public static void met( object o ) { } public int i = 9; public static int x = 2; private int pr { get { return 2; } } } [ ReflectionPermissionAttribute( SecurityAction.Deny, Flags = ReflectionPermissionFlag.AllFlags, Unrestricted = true ) ] class Class1 { public static void PermisosReflect() { ReflectionPermission sec = new ReflectionPermission( ReflectionPermissionFlag.AllFlags ); try { sec.Deny(); //************************* //************************* // ********************************* // the next code is supposed not to execute, but it does //************************* //************************* //************************* Type t = typeof( mo ); BindingFlags bf = BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static; foreach( MemberInfo mi in t.GetMembers( bf ) ) { Console.WriteLine( mi ); }; } catch( SecurityException e ){ Console.WriteLine( e ); } } public static void Deny() { Console.WriteLine("before calling"); ReflectionPermission sec = new ReflectionPermission( ReflectionPermissionFlag.AllFlags ); sec.Deny(); PermisosReflect();
-
email classHI, i've been exploring the net framework classes for a while and i didn't find a email class to send mails (pop3) . I'm missing or .NET does not owns a class like that? i think, Python brigs one in its class library, the NET framework, very much bigger, should do too Thanks in Advance Marcos