using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace Cockie
{
public partial class _Default : System.Web.UI.Page
{
public String getCookie(String Cookiename)
{
String CookieVal = " ";
try
{
CookieVal = Request.Cookies[Cookiename].Value;
}
catch (Exception e)
{
CookieVal = " ";
}
return CookieVal;
}
public bool setCookie(String Cookiename, String CookieVal, int iDaysToExpire)
{
try
{
HttpCookie obj = new HttpCookie(Cookiename);
Response.Cookies.Clear();
Response.Cookies.Add(obj);
obj.Values.Add(Cookiename, CookieVal);
DateTime dt = DateTime.Now.AddDays(iDaysToExpire);
Response.Cookies[Cookiename].Expires = dt;
}
catch (Exception c)
{
return false;
}
return true;
}
that code is to create a cookie ....contain Cookie Name ...Cookie Vlue ..And expiry Date i need this component to interact with my yahoo messenger if i login in yahoo messenger...this cookie program save the password and username ....
i don't know what to add at the above code exactly to make it interact with my yahoo messenger
Like should i publish it first and how i forward to exe file ???? :/ it's just a project i hav to make for my component subject so could u help please :'(
None
0 Points
7 Posts
how to make cookie program i made in .net store data from yahoo messenger
Dec 18, 2012 03:34 PM|Dima xD Gupta|LINK
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace Cockie
{
public partial class _Default : System.Web.UI.Page
{
public String getCookie(String Cookiename)
{
String CookieVal = " ";
try
{
CookieVal = Request.Cookies[Cookiename].Value;
}
catch (Exception e)
{
CookieVal = " ";
}
return CookieVal;
}
public bool setCookie(String Cookiename, String CookieVal, int iDaysToExpire)
{
try
{
HttpCookie obj = new HttpCookie(Cookiename);
Response.Cookies.Clear();
Response.Cookies.Add(obj);
obj.Values.Add(Cookiename, CookieVal);
DateTime dt = DateTime.Now.AddDays(iDaysToExpire);
Response.Cookies[Cookiename].Expires = dt;
}
catch (Exception c)
{
return false;
}
return true;
}
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
Label4.Text = "" + setCookie(TextBox1.Text, TextBox2.Text, Convert.ToInt32(TextBox3.Text));
Label4.Text += ".Expire:" + Response.Cookies[TextBox1.Text].Expires.ToString();
}
protected void Button2_Click(object sender, EventArgs e)
{
Label4.Text = getCookie(TextBox1.Text);
}
}
}
that code is to create a cookie ....contain Cookie Name ...Cookie Vlue ..And expiry Date i need this component to interact with my yahoo messenger if i login in yahoo messenger...this cookie program save the password and username ....
i don't know what to add at the above code exactly to make it interact with my yahoo messenger
Like should i publish it first and how i forward to exe file ???? :/ it's just a project i hav to make for my component subject so could u help please :'(
Member
1 Points
21 Posts
Re: how to make cookie program i made in .net store data from yahoo messenger
Dec 20, 2012 05:35 AM|ssmashherr|LINK
dear it is illegal to do such kind of stuff... thats y our forum is forbidden due to copyrights....
hope u will understand.....
None
0 Points
7 Posts
Re: how to make cookie program i made in .net store data from yahoo messenger
Dec 20, 2012 05:45 AM|Dima xD Gupta|LINK
Okay ..i got u
i made an authentication web page on c#
include username and password only here i can make it integrate with the cookie program above isn't ?
but how :/ ???