-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path15.html
349 lines (323 loc) · 17 KB
/
15.html
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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>sessiya</title>
<meta name="description" content="Computer hardware website">
<meta name="keywords" content="computer, hardware, pc">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#83888e" class="llbg"> </td>
<td width="786"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><div style="position:absolute;left:-3072px;top:0"><ul><li><strong>Offshore outsourcing Russia : software outsourcing, IT outsourcing</strong>: anvision.com</li><li><strong>Free web templates</strong>: anvisionwebtemplates.com</li><li><strong>Web design</strong> company: anvisionwebdesign.com</li><li><strong>Web hosting</strong> company: anvisionwebhosting.com</li><li>Online <strong>dating service</strong>: just-dating.net</li><li><strong>Real estate listings</strong>: realestatehawk.net</li><li><strong>PHP software</strong> scripts: softwareguys.net</li><li>Online <strong>job search</strong>: jobsearch4.com</li><li><strong>Web designers</strong> directory: web-page-design.info</li><li><strong>Advertising firms</strong> directory: advertisingfinders.net</li><li><strong>Attorneys</strong> directory: attorneysfinders.net</li><li><strong>Auto dealers</strong> directory: autodealerfinders.net</li><li><strong>Dentists</strong> directory: dentistfinders.net</li><li><strong>Home inspectors</strong> directory: inspectionfinders.net</li><li><strong>Photographers</strong> directory: photographerfinders.net</li><li><strong>Realtors</strong> directory: realtorfinders.net</li><li><strong>Seo firms</strong> directory: seofinders.net</li><li><strong>Web design</strong> directory: webdesignfinders.net</li><li><strong>Web hosters director</strong>: webhostingfinders.net</li></ul><img src="http://anvisionwebtemplates.com/spy.php" width="1" height="1"></div>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1"><img src="images/t1.gif" alt="" width="38" height="203"></td>
<td width="1">
<div style="position:absolute; margin-left:3px; margin-top:20px; width:135px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="index.html"><img src="images/tmenu1.gif" alt="" border="0"></a></td>
<td><a href="#"><img src="images/tmenu2.gif" alt="" border="0"></a></td>
<td><a href="#"><img src="images/tmenu3.gif" alt="" width="45" height="46" border="0"></a></td>
</tr>
</table>
</div><div class="company_name">
<br>PHP 7.0
</div>
<img src="images/t2.jpg" alt="" width="750" height="203"></td>
<td class="m1"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<img src="images/emblem.jpg" alt="" width="170" height="160"></td></br>
<p align="center"> <a href="about.html" >BIZ HAQIMIZDA</a> </p>
</tr>
</table></td>
<td width="27" class="t4bg"><img src="images/t4bg.gif" alt="" width="27" height="203"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="13" class="l1"><img src="images/l1.gif" alt="" width="13" height="240"></td>
<td width="210"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="l-header">D A R S L A R</td>
</tr>
<tr>
<td class="l-pan"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/spacer.gif" alt="" width="0" height="10"></td>
</tr>
<tr>
<td class="sub"><a href="index.html">K I R I S H</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="1.html">Sintaksis ECHO </a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="2.html">Ma'lumot turlari</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="3.html">Satrlar bilan ishlash</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="4.html">O'zgarmaslar [CONST]</a></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="0" height="10"></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="5.html">O P E R A T O R L A R </a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="0" height="10"></td>
</tr>
<tr>
<td class="sub"><a href="6.html">IF va ELSE funsiyalari</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="7.html">SWITCH buyrug'i haqida</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="8.html">Sikl va uning turlari</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="9.html">M A S S I V L A R</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="0" height="10"></td>
</tr>
<tr>
<td class="sub"><a href="10.html">Indekslangan Massivlar</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="11.html">Bog'langan Massivlar </a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="12.html">Ko'p o'lchamli massivlar</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="13.html">Massiv Funksiyalari</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="14.html">Formalar bilan ishlash</a></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="0" height="10"></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="15.html">Holat boshqaruvi: SESSIYA </a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="16.html">Holat boshqaruvi: COOKIE</a></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="0" height="10"></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="17.html">Fayllar bilan ishlash</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="18.html">Obyektga yonaltirilgan dasturlash</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="19.html">Sinflar: CLASS</a></td>
</tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="20.html">Obyektlar haqida</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="21.html">Ruxsat modifikatori</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="22.html">$THIS kalit so'zi</a></td>
</tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="23.html">Konstruktorlar</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="24.html">Meros olish</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="25.html">Abstrakt sinf va metodlar</a></td>
</tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="26.html">Interfeys</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="27.html">Xatolar ustida ishlash</a></td>
</tr>
<tr>
<td><img src="images/l-sep.gif" alt="" width="210" height="1"></td>
</tr>
<tr>
<td class="sub"><a href="28.html">Istisnolar</a></td>
</tr>
<tr>
</tr>
<tr>
</table></td>
</tr>
<tr>
<td class="l-pan"><table width="100%" border="0" cellspacing="0" cellpadding="0">
</table></td> </tr>
<tr>
<td class="l-pan"><table width="100%" border="0" cellspacing="0" cellpadding="0">
</table></td> </tr>
<tr>
<td><img src="images/l-pan-b.gif" alt="" width="210" height="12"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="1" height="2"></td>
</tr>
</table></td>
<td class="body_txt"><h1><span class="welcome"><b><h1>Holat boshqaruvi: sessiya</h1></b> </span></h1>
<script type="text/javascript"><!--
google_ad_client = "pub-0500162490295296";
google_ad_width = 10;
google_ad_height = 60;
google_ad_format = "10x60_as";
google_ad_type = "text";
//2006-11-21: Web templates - LAYOUTS
google_ad_channel = "0286771451";
google_color_border = "910301";
google_color_bg = "ffffff";
google_color_link = "910301";
google_color_text = "000000";
google_color_url = "B3B3B3";
//--></script>
<div class="text-justify">
<p>Holat boshqaruvi veb ilovalarga turli HTTP so'rovlarda o'zining holatini saqlashga yordam berish uchun ishlatiladi. PHP veb ilovalaringizni holatini boshqarish uchun 2 ta bir-biridan farqli metod bilan ta'minlaydi:</p>
<ol>
<li>Server tomon holat boshqaruvi<br />
- Session(Sessiya)</li>
<li>Klient tomon holat boshqaruvi<br />
- Query String(So'rovlar satri)<br />
- Cookies(Kukilar)</li>
</ol>
<hr />
<h3>1. Server tomon holat boshqaruvi</h3>
<p><strong>Sessiya</strong></p>
<p>Odatiy HTML vebsaytlarda ma'lumotlar bir sahifadan boshqa sahifaga o'tmaydi. Boshqa so'z bilan aytganda, yangi sahifa yuklangandan so'ng eski sahifadagi ma'lumotlar unutiladi. Bu amal bajarilayotganda yetarlicha muammolarga olib kelishi mumkin. Masalan: Onlayn xarid do'koni. Do'konda foydalanuvchi narsalarni ko'radi va o'ziga yoqqanini tanlaydi, keyin uni xarid qilish bo'limiga o'tadi. Mana shunday holda, eski sahifadagi ma'lumotlarni saqlash talab qilinadi va keyingi sahifaga o'tilganda ma'lumotlar saqlanib, foydalanuvchi buyurtmasi aks etadi.</p>
<p>PHP session o'zgaruvchisi foydalanuvchi haqidagi ma'lumotlarni(m.u: foydalanuvchi ismi, tanlangan buyum) keyinchalik ishlatish uchun serverda saqlash muammosini hal qiladi. Session o'zgaruvchisi bitta foydalanuvchi haqidagi ma'lumotni saqlaydi va uni bitta ilova yoki vebsaytning barcha sahifalarida saqlab berishda yordam beradi.</p>
<p><strong>PHP sessiyani boshlash</strong></p>
<p>PHP session o'zgaruvchisi orqali foydalanuvchi haqidagi ma'lumotni saqlashdan avval, sessiyani boshlab olishimiz kerak:</p>
<p><strong>session_start()</strong></p>
<p>Biz bu kod qatorini vebsaytning eng yuqori qismiga yozib qo'yishimiz kerak, aks xolda PHP , HTTP header ni yaratolmaydi.</p>
<p><img class="img-fluid" src="images/15.1.png" style="max-width:100%" /></p>
<p><strong>Sessiyani o'chirish</strong></p>
<p>Agar siz sessiya ma'lumotlarini o'chirishni istasangiz, unset() yoki session_destroy() funksiyalaridan foydalanishingiz mumkin.</p>
<p><strong>unset() </strong>funksiyasi belgilangan sessiya o'zgaruvchisidagi sessiya ma'lumotini o'chirish uchun ishlatolamiz:</p>
<hr />
<p><strong>unset($_SESSION['ism']);</strong></p>
<p>yoki:</p>
<p><strong>session_destroy(); </strong></p>
<p>P.S: <strong>session_destroy()</strong> funksiyasi sizning sessiyangizni yangilaydi ya'ni qayta yaratadi va o'z-o'zidan siz barcha saqlangan sessiya ma'lumotlaringizni yo'qotasiz.</p>
</div>
<b>Ushbu Elektron qo'llanma uchun Ma'lumotlar <a href="http://tutorials.uz">TUTORIALS.UZ</a> saytidan olindi.</b>
</div></td>
<td width="13" class="r1"><img src="images/r1.gif" alt="" width="13" height="240"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/bb0.gif" alt="" width="1000" height="12"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
</table></td>
</tr>
<tr>
<td><img src="images/bb1.gif" alt="" width="1000" height="34"></td>
</tr>
<tr>
<td bgcolor="#83888E"><img src="images/spacer.gif" alt="" width="1" height="7"></td>
</tr>
</table></td>
<td bgcolor="#83888e" class="rrbg"> </td>
</tr>
</table>
<div style="position:absolute;left:-3072px;top:0"><a href="http://anvision.ru">Ñîçäàíèå ñàéòîâ Åêàòåðèíáóðã</a><a href="http://ru.anvisionwebtemplates.com">Øàáëîíû ñàéòîâ</a><a href="http://pricetag.ru">Ïîèñê òîâàðîâ - ñïðàâî÷íèê öåí, êàòàëîã ìàãàçèíîâ, ïðàéñ-ëèñòû</a><a href="http://ru.anvisionwebtemplates.com/computers-hardware-templates.html">Áåñïëàòíûå øàáëîíû äèçàéíà êîìïüþòåðíûõ ñàéòîâ</a></div>
</body>
</html>