HTML - generar salida de usuario

 
Vista:
Imágen de perfil de yerania

generar salida de usuario

Publicado por yerania (2 intervenciones) el 27/02/2015 21:08:09
ya tengo el código de usuario y contraseña y me manda a mi pagina de inicio, pero aun no encuentro el modo que me diga salir usuario.

Aqui es cuando el usuario ingresa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
 "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>Usuario</title>
	<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" />
	<meta http-equiv="Cache-Control" content="max-age=3600"/>
    <script type="text/JavaScript">
<!--
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
//-->
    </script>
    <style type="text/css">
<!--
#Layer1 {
	position:absolute;
	left:0px;
	top:0px;
	width:20px;
	height:30px;
	z-index:1;
}
#Layer2 {
	position:absolute;
	left:20px;
	top:34px;
	width:44px;
	height:36px;
	z-index:1;
}
#Layer3 {
	position:absolute;
	left:77px;
	top:38px;
	width:175px;
	height:45px;
	z-index:2;
}
.Estilo3 {color: #0000CC}
#Layer4 {
	position:absolute;
	left:92px;
	top:108px;
	width:68px;
	height:72px;
	z-index:3;
}
.Estilo4 {color: #006699}
-->
    </style>
</head>
 
<script src="login.js" type="text/javascript"></script>
</head>
 
<body>
<div id="Layer2"><img src="../../Imagenes/logo2.jpg" alt="logo" width="50" height="50" /></div>
<div id="Layer3">
  <center>
    <span class="Estilo3">    Universidad Multitecnica Profesional    </span>
  </center>
</div>
<div id="Layer4">
  <div align="center"><img src="../../Imagenes/la-seguridad-del-usuario--forma-la-mitad-del-cuerpo_318-32249.jpg" alt="logo" width="70" height="70" /></div>
</div>
<script>
function usrpas(){
if (document.form1.txt.value=="admin1" && document.form1.num.value=="1234" || document.form1.txt.value=="admin2" && document.form1.num.value=="1234"){window.location="Index.html"}
 
else {alert("Error en Usuario o Contraseña. Intenta de nuevo.")}
}
document.oncontextmenu=new Function("return false");
</script>
<form method="post" enctype="application/x-www-form-urlencoded" name="form1">
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p><span class="Estilo4">Usuario</span>
    <input name="txt" type="text" size="10" maxlength="10" />
  </p>
  <p> <span class="Estilo4">Contraseña</span>
    <input name="num" type="password" size="8" maxlength="8" />
      <label for="imageField"></label>
  .</p>
  <p>
    <input name="button" type="reset" onclick="usrpas()" value="Entrar" />
    <label for="Submit"></label>
</p>
</form>
<p onfocus="MM_callJS('hola')">&nbsp;</p>
</body>
</html>


y cuando entra es la portada de datos de usuario

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
 "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>Index</title>
	<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" />
	<meta http-equiv="Cache-Control" content="max-age=3600"/>
    <style type="text/css">
<!--
#Layer1 {
	position:absolute;
	left:17px;
	top:25px;
	width:61px;
	height:52px;
	z-index:1;
}
#Layer2 {
	position:absolute;
	left:83px;
	top:37px;
	width:214px;
	height:38px;
	z-index:2;
}
#Layer3 {
	position:absolute;
	left:38px;
	top:114px;
	width:69px;
	height:52px;
	z-index:3;
}
#Layer4 {
	position:absolute;
	left:117px;
	top:123px;
	width:164px;
	height:36px;
	z-index:4;
	background-color: #CCCC99;
}
.Estilo3 {
	font-size: 18px;
	font-family: "Times New Roman", Times, serif;
	color: #003399;
}
#Layer5 {
	position:absolute;
	left:117px;
	top:123px;
	width:153px;
	height:33px;
	z-index:4;
}
#Layer6 {
	position:absolute;
	left:43px;
	top:188px;
	width:57px;
	height:60px;
	z-index:5;
}
#Layer7 {
	position:absolute;
	left:130px;
	top:193px;
	width:125px;
	height:37px;
	z-index:6;
}
.Estilo5 {color: #CC3300}
#Layer8 {
	position:absolute;
	left:461px;
	top:44px;
	width:135px;
	height:57px;
	z-index:7;
}
#Layer9 {
	position:absolute;
	left:47px;
	top:263px;
	width:55px;
	height:49px;
	z-index:8;
}
#Layer10 {
	position:absolute;
	left:128px;
	top:273px;
	width:132px;
	height:25px;
	z-index:9;
}
#Layer11 {
	position:absolute;
	left:46px;
	top:338px;
	width:55px;
	height:52px;
	z-index:10;
}
#Layer12 {
	position:absolute;
	left:119px;
	top:345px;
	width:136px;
	height:24px;
	z-index:11;
}
.Estilo6 {color: #006699; font-size: 24px; }
#Layer13 {
	position:absolute;
	left:47px;
	top:409px;
	width:54px;
	height:50px;
	z-index:12;
}
#Layer14 {
	position:absolute;
	left:129px;
	top:416px;
	width:129px;
	height:38px;
	z-index:13;
}
#Layer15 {
	position:absolute;
	left:160px;
	top:515px;
	width:34px;
	height:40px;
	z-index:14;
}
#Layer16 {
	position:absolute;
	left:27px;
	top:505px;
	width:241px;
	height:41px;
	z-index:14;
}
#Layer17 {
	position:absolute;
	left:20px;
	top:503px;
	width:52px;
	height:27px;
	z-index:14;
}
#Layer18 {
	position:absolute;
	left:227px;
	top:499px;
	width:67px;
	height:32px;
	z-index:15;
}
.Estilo7 {
	font-size: 10px;
	color: #0066CC;
}
.Estilo8 {color: #006699; }
-->
    </style>
</head>
 
<body>
<div id="Layer1">
  <div align="left">
    <p align="center"><img src="logo2.jpg" alt="logo" width="60" height="60" /></p>
  </div>
</div>
<div id="Layer2">
  <div align="center">
    <h1 class="Estilo3">Universidad Multitecnica Profesional </h1>
  </div>
</div>
<div id="Layer3">
  <div align="center"><img src="../../Imagenes/1387072174_books.png" alt="logo" width="50" height="50" /></div>
</div>
<div id="Layer5">
  <h1 class="Estilo8"><a href="../Modulo materia/Mat-Cal.html">Calificacion</a></h1>
</div>
<div id="Layer6">
  <div align="center"><img src="../../Imagenes/la-seguridad-del-usuario--forma-la-mitad-del-cuerpo_318-32249.jpg" alt="alumno" width="50" height="50" /></div>
</div>
<div id="Layer7">
  <h1 align="center" class="Estilo8">Alumno</h1>
</div>
<div id="Layer9"><img src="../../Imagenes/icono_profesor.png" alt="informacion" width="50" height="50" /></div>
<div id="Layer10">
  <center>
    <h2 class="Estilo8">    Información    </h2>
  </center>
</div>
<div id="Layer11">
  <div align="center"><img src="../../Imagenes/usuario-escudo-simbolo-interfaz-para-la-seguridad_318-63497.jpg" alt="administracion" width="50" height="50" /></div>
</div>
<div id="Layer12">
  <center>
    <h1 class="Estilo6">    Admnistración    </h1>
  </center>
</div>
<div id="Layer13"><img src="http://2.bp.blogspot.com/-TFwGk-TiEB4/Ua-K70K3rcI/AAAAAAAAEdo/WYl9yIrfwdg/s1600/contacto.gif" alt="contacto" width="50" height="50"/></div>
<div id="Layer14">
  <h1 class="Estilo5">
    <center>
      <span class="Estilo8"><a href="../Contacto/Contacto.html">Contacto</a></span>
    </center>
  </h1>
</div>
<div id="Layer17">
  <form id="form1" method="post" action="">
    <p>
      <label>
      <input name="Boton" type="submit" id="Boton" value="Salir" />
      </label>
    </p>
  </form>
</div>
<div id="Layer18">(<span class="Estilo7">UMP</span>)&copy;</div>
<table width="296" border="0" cellpadding="0" cellspacing="1">
  <!--DWLayoutTable-->
  <tr>
    <td width="294" height="466" valign="top"><p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
    <p>&nbsp;</p>      <p>&nbsp;</p></td>
  </tr>
  <tr>
    <td height="62">&nbsp;</td>
  </tr>
</table>
</body>
</html>

cuando el usuario ya no quiera estar aquí pueda cerrar seccion o salir
Como le puedo hacer¿?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de xve
Val: 1.144
Oro
Ha mantenido su posición en HTML (en relación al último mes)
Gráfica de HTML

generar salida de usuario

Publicado por xve (1543 intervenciones) el 01/03/2015 00:13:34
Hola Yerenia, la validación del usuario la realizas con JavaSscript, por lo que no tiene ningún tipo de seguridad, ya que cualquier usuario puede visualizar el usuario y contraseña de acceso.

te recomiendo que utilices algun lenguaje de programación como PHP, Perl,Python o Jova, para gestionar los usuarios de manera correcta.

Que lenguaje de programación tienes en el servidor?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de yerania

generar salida de usuario

Publicado por yerania (2 intervenciones) el 01/03/2015 10:02:33
lo e resuelto ahora quiero eliminar el mensaje xD como se hace en esta pagina
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar