Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - somebody now what session this forum is..
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

somebody now what session this forum is..

 Post Reply Post Reply
Author
ZnarK View Drop Down
Newbie
Newbie


Joined: 31 May 2003
Location: Sweden
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote ZnarK Quote  Post ReplyReply Direct Link To This Post Topic: somebody now what session this forum is..
    Posted: 09 June 2003 at 11:44am

somebody now what session this forum is making when i login? I dont meen this forum bout the free forum. that have being good to now becuase iam doing a mod to the forum.

And i need to now what session  its making just the session when someone logging in.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2003 at 12:20pm
The forum doesn't use session variables.
Back to Top
ZnarK View Drop Down
Newbie
Newbie


Joined: 31 May 2003
Location: Sweden
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote ZnarK Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2003 at 12:31pm

Alright but hove shuold i do white this code:

_______________view.asp__________________
<%
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & server.mappath ("admin/database/wwForum.mdb")
SQL = "Select * from tblAuthor where bild = 1"
set rs = connect.execute(SQL)
do until rs.eof
%>
<%=rs("user")%>
<%
SQL = "Select * from bilder where vems = " & rs("vems") & ""
set rs2 = connect.execute(SQL)
do until rs2.eof
%>
<img src = "<%=rs2("img")%>"><br>
<%
rs2.movenext
loop
rs.movenext
loop
%>
<form action="save.asp" method="post">
 <input name="url" type="text">
    <input type="submit" name="Submit" value="Submit">
</form>

_____________save.asp______________________
<%
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & server.mappath ("admin/database/wwForum.mdb")
vems = session("SessionID")
img = request.form("img")

connect.execute("Insert into bilder (img,vems) values('" & img & "','" & vems & "')")
connect.execute("Update tblAuthor set bild = 1 where id = " & session("SessionID") & "")
connect.close
set connect = nothing %>

 

all the database adds have i done so i must need to now hove i can add it..

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2003 at 12:52pm
Originally posted by -boRg- -boRg- wrote:

The forum doesn't use session variables.


That's not true line 314 of common.asp sets the session variable dtmLastVisit with
Session("dtmLastVisit") = CDate(Request.Cookies("FLVST")("LTVST"))

and it uses one called ViRead

In fact the forum uses or sets at least two (2) Session variables and at least six (6) cookies.
Back to Top
ZnarK View Drop Down
Newbie
Newbie


Joined: 31 May 2003
Location: Sweden
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote ZnarK Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2003 at 1:05pm
can somebod help me whit my code??
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2003 at 1:35pm
what are you tryig to do?
Back to Top
ZnarK View Drop Down
Newbie
Newbie


Joined: 31 May 2003
Location: Sweden
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote ZnarK Quote  Post ReplyReply Direct Link To This Post Posted: 10 June 2003 at 7:56am
iam doing a picture galleri. If there is a member on the forum and he want to post a picture on hi's profile, then it shows on a page that named: weiv.asp.

that page lists all users that have pics in the database. and now iam wondering how to make this code working? It dosent uses session variables, it youses cookies. So how can i make this code working please help me:

<%
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & server.mappath ("admin/database/wwForum.mdb")
vems = session("SessionID")
img = request.form("img")

connect.execute("Insert into bilder (img,vems) values('" & img & "','" & vems & "')")
connect.execute("Update tblAuthor set bild = 1 where id = " & session("SessionID") & "")
connect.close
set connect = nothing %>

 

instead of session on this line: connect.execute("Update tblAuthor set bild = 1 where id = " & session("SessionID") & "")
it should have a cookie but i dont now how to do...

so now i wonder if somebody can help me with my code..

thanks a lot..

Back to Top
ZnarK View Drop Down
Newbie
Newbie


Joined: 31 May 2003
Location: Sweden
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote ZnarK Quote  Post ReplyReply Direct Link To This Post Posted: 10 June 2003 at 7:56am
could somebody help me???
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.