<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Grap the username outside the forum ?</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Grap the username outside the forum ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 03 Apr 2026 22:04:50 +0000</pubDate>
  <lastBuildDate>Mon, 10 Mar 2008 00:38:35 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=25310</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Grap the username outside the forum ? : I want to do the same, but i can&amp;#039;t...]]></title>
   <link>https://forums.webwiz.net/grap-the-username-outside-the-forum_topic25310_post131891.html#131891</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=25948">akela11</a><br /><strong>Subject:</strong> 25310<br /><strong>Posted:</strong> 10&nbsp;March&nbsp;2008 at 12:38am<br /><br />I want to do the same, but i can't get it work :(]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 00:38:35 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/grap-the-username-outside-the-forum_topic25310_post131891.html#131891</guid>
  </item> 
  <item>
   <title><![CDATA[Grap the username outside the forum ? : Yep i know.... talking to myself...]]></title>
   <link>https://forums.webwiz.net/grap-the-username-outside-the-forum_topic25310_post131443.html#131443</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=27487">Sundsdal</a><br /><strong>Subject:</strong> 25310<br /><strong>Posted:</strong> 17&nbsp;February&nbsp;2008 at 9:28pm<br /><br />Yep i know.... talking to myself here :-) BUT i figured it out.... and i works now.<br><br>I edited in this<b> strLoggedInUserCode = Trim(Mid(Request.Cookies("Forum")("UserID"), 1, 40))<br><br><br></b>]]>
   </description>
   <pubDate>Sun, 17 Feb 2008 21:28:08 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/grap-the-username-outside-the-forum_topic25310_post131443.html#131443</guid>
  </item> 
  <item>
   <title><![CDATA[Grap the username outside the forum ? : Ok i see now.... i have testet...]]></title>
   <link>https://forums.webwiz.net/grap-the-username-outside-the-forum_topic25310_post131442.html#131442</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=27487">Sundsdal</a><br /><strong>Subject:</strong> 25310<br /><strong>Posted:</strong> 17&nbsp;February&nbsp;2008 at 8:21pm<br /><br />Ok i see now.... i have testet the cookie.&nbsp; And it will now read the cookie outside the forum folder ? <br><br>weird.<br>]]>
   </description>
   <pubDate>Sun, 17 Feb 2008 20:21:48 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/grap-the-username-outside-the-forum_topic25310_post131442.html#131442</guid>
  </item> 
  <item>
   <title><![CDATA[Grap the username outside the forum ? : I know....  but im using the code...]]></title>
   <link>https://forums.webwiz.net/grap-the-username-outside-the-forum_topic25310_post131440.html#131440</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=27487">Sundsdal</a><br /><strong>Subject:</strong> 25310<br /><strong>Posted:</strong> 17&nbsp;February&nbsp;2008 at 7:38pm<br /><br />I know.... &nbsp; but im using the code from the forum:<br><br>'Read in users ID number from the cookie<br>strLoggedInUserCode = Trim(Mid(Request.Cookies("Forum")("UserID"), 1, 40))<br><br>'###strLoggedInUserCode = Request.Cookies("Forum")("UserID")<br><br>'Replace harmful SQL quotation marks with doubles<br>strLoggedInUserCode = Replace(strLoggedInUserCode, "'", "''", 1, -1, 1)<br>'Make the usercode SQL safe<br>'strLoggedInUserCode = formatSQLInput(strLoggedInUserCode)<br><br>'If a cookie exsists on the users system then read in there username from the database<br>If isEmpty(strLoggedInUserCode) = False Then<br><br>&nbsp;&nbsp;&nbsp; 'Intialise the ADO recordset object<br>&nbsp;&nbsp;&nbsp; Set rsLoggedInUser = Server.CreateObject("ADODB.Recordset")<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 'Initalise the strSQL variable with an SQL statement to query the database<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL = "SELECT tblAuthor.Username, tblAuthor.Author_ID, tblAuthor.Active, tblAuthor.Signature, tblAuthor.Author_email, tblAuthor.Status, tblAuthor.Redaktion "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL = strSQL &amp; "FROM tblAuthor "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL = strSQL &amp; "WHERE User_code = '" &amp; strLoggedInUserCode &amp; "';"<br><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 'Query the database<br>&nbsp;&nbsp;&nbsp; 'rsLoggedInUser.Open strSQL, strCon<br>&nbsp;&nbsp;&nbsp; Set rsLoggedInUser = Conn.execute(strSQL)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 'If the database has returned a record then run next bit<br>&nbsp;&nbsp;&nbsp; If NOT rsLoggedInUser.EOF Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Before getting the users details make sure then are not trying to log in under the guest account<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; If rsLoggedInUser("Author_ID") &lt;&gt; 2 Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Read in the users details from the recordset<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <b>strLoggedInUsername</b> = rsLoggedInUser("Username")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; .....<br>......<br>......&nbsp; etc.<br><br>I should be able to read the username this way.... right ?<br>]]>
   </description>
   <pubDate>Sun, 17 Feb 2008 19:38:02 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/grap-the-username-outside-the-forum_topic25310_post131440.html#131440</guid>
  </item> 
  <item>
   <title><![CDATA[Grap the username outside the forum ? : Usernames ar not stored in cookies,...]]></title>
   <link>https://forums.webwiz.net/grap-the-username-outside-the-forum_topic25310_post131436.html#131436</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 25310<br /><strong>Posted:</strong> 17&nbsp;February&nbsp;2008 at 6:01pm<br /><br />Usernames ar not stored in cookies, sessions, etc. so you would not be able o grab the username in this way<br><br>You would need to look into a secure way to save and retrieve the username from the forum.<br>]]>
   </description>
   <pubDate>Sun, 17 Feb 2008 18:01:15 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/grap-the-username-outside-the-forum_topic25310_post131436.html#131436</guid>
  </item> 
  <item>
   <title><![CDATA[Grap the username outside the forum ? :   Does anyone know how i can...]]></title>
   <link>https://forums.webwiz.net/grap-the-username-outside-the-forum_topic25310_post131429.html#131429</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=27487">Sundsdal</a><br /><strong>Subject:</strong> 25310<br /><strong>Posted:</strong> 17&nbsp;February&nbsp;2008 at 4:55pm<br /><br />Does anyone know how i can grap the username outside the forum. ?&nbsp; It could be on my frontpage...etc.<br><br>I have tried to grap it with the cookies and <b>strLoggedInUsername .... </b>But no luck<b><br></b><br><br><br><span style="font-size:10px"><br /><br />Edited by Sundsdal - 17&nbsp;February&nbsp;2008 at 5:10pm</span>]]>
   </description>
   <pubDate>Sun, 17 Feb 2008 16:55:40 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/grap-the-username-outside-the-forum_topic25310_post131429.html#131429</guid>
  </item> 
 </channel>
</rss>