当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 我要调用客户端的程序,现在用javascript访问注册表,找出了程序的位置,程序是这样写的 <script language=javascript> var wsh = new activexobject("wscript.shell"); var t=wsh.regread("hkey_local_machine\\software\\mi......
 ·时间表建立后数据的填充问题    »显示摘要«
    摘要: 数据库表的格式如下: time_id int the_date datetime the_day nvarchar the_month nvarchar the_year smallint day_of_month smallint month_of_year smallint quarter nvarchar fiscal_period nvarchar 例如......


cookie终止问题

如果一个人登录身份验证成功.  
  我给他写一个COOK.  
                      HttpCookie   MyCookie   =   new   HttpCookie("userlogon");  
    MyCookie.Value   =   "username";  
    Response.Cookies.Add(MyCookie);  
  如果他关闭了浏览器.这个COOKIE就自动消失.  
  但是如果他点注销.我怎么终止这个COOKIE.  
  我不想用SESSION.由于SESSION和ASP不能共享数据.  
  谢谢大家.  
 

NO.1   作者: saucer

注销按钮?   is   it   a   client   side   button   or   server   button?    
   
  if   it   is   a   server   button,   use     gshope(北京.Net)   s   method  
   
  if   it   is   a   client   button,   see   the   DeleteCookie   method   here:  
   
  <SCRIPT>  
  //   Delete   the   cookie   with   the   specified   name.  
  function   DelCookie(sName)  
  {  
      document.cookie   =   sName   +   "="   +   escape(sValue)   +   ";   expires=Fri,   31   Dec   1999   23:59:59   GMT;";  
  }  
  </SCRIPT>  
   
   
  http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/cookie.asp

NO.2   作者: musicllm

Response.Cookies.Remove("youcookie");  
  快快给分啊


 ·公用自定义函数问题    »显示摘要«
    摘要: 小弟刚接触.net不久,使用过程中有一个问题,我想把所有公用函数放在一个.vb 文件中 ,然后在其它的aspx文件中调用,该如何做呢? 命名空间的用法也不太清楚,也就是在一个.vb文件中定义一个namespace,但如何在其它 页面中调用这个namespace中的类或函数呢呢? 谢谢! ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE